add clear

This commit is contained in:
2020-04-03 17:53:17 +08:00
parent 04a86e3e17
commit 2d08ed945a
2 changed files with 7 additions and 4 deletions
-1
View File
@@ -349,7 +349,6 @@ class HttpClient
$this->isSSL = false; $this->isSSL = false;
} }
} }
var_dump($first);
$url = '/' . implode('/', $explode); $url = '/' . implode('/', $explode);
return [$first, $url]; return [$first, $url];
} }
+7 -3
View File
@@ -15,7 +15,7 @@ class SecCheck extends SmallProgram
private $_url = 'https://api.q.qq.com/api/json/security/ImgSecCheck?access_token='; private $_url = 'https://api.q.qq.com/api/json/security/ImgSecCheck?access_token=';
private $_msgUrl = 'https://api.q.qq.com/api/json/security/MsgSecCheck?access_token='; private $_msgUrl = '/api/json/security/MsgSecCheck?access_token=';
/** /**
* @param string $path * @param string $path
@@ -50,10 +50,14 @@ class SecCheck extends SmallProgram
$this->request->setErrorField('errCode'); $this->request->setErrorField('errCode');
$this->request->setErrorMsgField('errMsg'); $this->request->setErrorMsgField('errMsg');
$this->request->setData(null); $this->request->setData(null);
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), json_encode([ $this->request->setHost('api.q.qq.com');
$this->request->setIsSSL(true);
$url = $this->_msgUrl . $this->config->getAccessToken();
return $this->request->post($url, [
'appid' => $this->config->getAppid(), 'appid' => $this->config->getAppid(),
'content' => $content 'content' => $content
])); ]);
} }