From e07f50ac984bd5491ec03b72136706089ffdd2e8 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 7 Jan 2020 14:12:56 +0800 Subject: [PATCH] add clear --- qq/Account.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qq/Account.php b/qq/Account.php index e08363b..6f6a91f 100644 --- a/qq/Account.php +++ b/qq/Account.php @@ -29,11 +29,12 @@ class Account extends SmallProgram return new Result(['code' => 404, 'message' => '临时登录凭证不能为空.']); } -// $this->request->setHost('api.q.qq.com'); -// $this->request->setMethod(HttpClient::GET); + $this->request->setHost('api.q.qq.com'); + $this->request->setMethod(HttpClient::GET); + $this->request->setIsSSL(true); $this->request->setUseSwoole($this->config->isUsrSwoole()); - return $this->request->get('https://api.q.qq.com/sns/jscode2session', $param); + return $this->request->get('sns/jscode2session', $param); } /**