From 409eae7dc4944f3581359b6e6d87daf13945ddfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 24 Sep 2020 11:53:16 +0800 Subject: [PATCH] add clear --- wchat/wx/Account.php | 2 ++ 1 file changed, 2 insertions(+) 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');