diff --git a/wchat/wx/Account.php b/wchat/wx/Account.php index a02593d..462f3f1 100644 --- a/wchat/wx/Account.php +++ b/wchat/wx/Account.php @@ -50,6 +50,8 @@ class Account extends SmallProgram $this->request->setMethod(HttpClient::GET); $this->request->addHeader('Content-Type', 'application/json'); + $this->request->setHost('api.weixin.qq.com'); + $this->request->addHeader('Host', 'api.weixin.qq.com'); $this->request->setErrorField('errcode'); $this->request->setErrorMsgField('errmsg');