diff --git a/wchat/qq/Template.php b/wchat/qq/Template.php index 52bb162..694ce2a 100644 --- a/wchat/qq/Template.php +++ b/wchat/qq/Template.php @@ -137,7 +137,8 @@ class Template extends SmallProgram $params = json_encode($params, JSON_UNESCAPED_UNICODE); $this->request->setIsSSL(true); $this->request->addHeader('content-type', 'application/json'); - + $this->request->setErrorField('errcode'); + $this->request->setErrorMsgField('errmsg'); $result = $this->request->post($url, $params); $result->append('postBody', $params);