diff --git a/wchat/qq/SecCheck.php b/wchat/qq/SecCheck.php index d21549e..122f649 100644 --- a/wchat/qq/SecCheck.php +++ b/wchat/qq/SecCheck.php @@ -49,16 +49,15 @@ class SecCheck extends SmallProgram $this->request->addHeader('Content-Type', 'application/json'); $this->request->setErrorField('errCode'); $this->request->setErrorMsgField('errMsg'); - $this->request->setData(null); + $this->request->setData([ + 'appid' => $this->config->getAppid(), + 'content' => $content + ]); $this->request->setHost('api.q.qq.com'); $this->request->setIsSSL(true); $url = '/' . ltrim($this->_msgUrl, '/') . $this->config->getAccessToken(); - var_dump($url); - return $this->request->post($url, [ - 'appid' => $this->config->getAppid(), - 'content' => $content - ]); + return $this->request->post($url); }