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');