add clear
This commit is contained in:
+10
-7
@@ -70,13 +70,16 @@ class Account extends SmallProgram
|
|||||||
'lang' => 'zh_CN'
|
'lang' => 'zh_CN'
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->request->setMethod(HttpClient::GET);
|
$client = HttpClient::NewRequest();
|
||||||
$this->request->setIsSSL(true);
|
$client->setAgent($this->config->getAgent());
|
||||||
$this->request->setHost('api.weixin.qq.com');
|
$client->setUseSwoole($this->config->isUsrSwoole());
|
||||||
$this->request->addHeader('Host', 'api.weixin.qq.com');
|
$client->setMethod(HttpClient::GET);
|
||||||
$this->request->setErrorField('errcode');
|
$client->setIsSSL(true);
|
||||||
$this->request->setErrorMsgField('errmsg');
|
$client->setHost('api.weixin.qq.com');
|
||||||
return $this->request->get('user/info', $query);
|
$client->addHeader('Host', 'api.weixin.qq.com');
|
||||||
|
$client->setErrorField('errcode');
|
||||||
|
$client->setErrorMsgField('errmsg');
|
||||||
|
return $client->get('user/info', $query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user