mall_id = $config['mall_id'] ?? 0; $this->user_id = $config['user_id'] ?? 0; $this->platform = $config['platform'] ?? ''; $this->store_id = $config['store_id'] ?? 0; $this->user = $config['user'] ?? []; $this->admin = $config['admin'] ?? []; } /** * 错误信息 * * @var string */ protected $error; /** * 错误返回 * * @param string $msg * @return false */ public function error(string $msg = '') { $this->error = $msg; return false; } /** * 获取错误信息 * * @return string */ public function getError() { return $this->error; } }