config->getAppid(); $param['secret'] = $this->config->getAppsecret(); $param['js_code'] = $code; $param['grant_type'] = 'authorization_code'; if (empty($code)) { return new Result(['code' => 404, 'message' => '临时登录凭证不能为空.']); } $this->request->setHost('api.q.qq.com'); $this->request->setMethod(HttpClient::GET); $this->request->setUseSwoole($this->config->isUsrSwoole()); return $this->request->get('/sns/jscode2session', $param); } /** * @param $encryptedData * @param $iv * @param $sessionKey * @param $asArray * @return object|array * @throws * * *