From 421c6ecf314154a24834984327a074a9218e265d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 24 Sep 2020 11:33:28 +0800 Subject: [PATCH] add clear --- wchat/wx/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/wx/Account.php b/wchat/wx/Account.php index 0fe6cf6..a02593d 100644 --- a/wchat/wx/Account.php +++ b/wchat/wx/Account.php @@ -49,7 +49,7 @@ class Account extends SmallProgram $param['grant_type'] = 'authorization_code'; $this->request->setMethod(HttpClient::GET); - $this->request->addHeader('Content-Type', 'text/xml'); + $this->request->addHeader('Content-Type', 'application/json'); $this->request->setErrorField('errcode'); $this->request->setErrorMsgField('errmsg');