add clear
This commit is contained in:
+4
-3
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user