add clear
This commit is contained in:
@@ -282,9 +282,7 @@ class HttpClient
|
|||||||
{
|
{
|
||||||
$data = $this->paramEncode($data);
|
$data = $this->paramEncode($data);
|
||||||
if ($this->use_swoole) {
|
if ($this->use_swoole) {
|
||||||
$url = $this->matchHost($url);
|
return $this->coroutine($this->host, $this->matchHost($url), $data);
|
||||||
var_dump($this->host, $url);
|
|
||||||
return $this->coroutine($this->host, $url, $data);
|
|
||||||
} else {
|
} else {
|
||||||
return $this->useCurl($url, $data);
|
return $this->useCurl($url, $data);
|
||||||
}
|
}
|
||||||
@@ -521,7 +519,6 @@ class HttpClient
|
|||||||
{
|
{
|
||||||
var_dump($host, $this->getHostPort(), $this->isSSL, $url);
|
var_dump($host, $this->getHostPort(), $this->isSSL, $url);
|
||||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||||
|
|
||||||
$client->set($this->settings());
|
$client->set($this->settings());
|
||||||
if (!empty($this->agent)) {
|
if (!empty($this->agent)) {
|
||||||
$this->header['User-Agent'] = $this->agent;
|
$this->header['User-Agent'] = $this->agent;
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ 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);
|
||||||
$this->request->setHost('api.q.qq.com');
|
// $this->request->setHost('api.q.qq.com');
|
||||||
$this->request->setIsSSL(true);
|
$this->request->setIsSSL(true);
|
||||||
|
|
||||||
$url = $this->_msgUrl . $this->config->getAccessToken();
|
$url = 'https://api.q.qq.com'.$this->_msgUrl . $this->config->getAccessToken();
|
||||||
return $this->request->post($url, json_encode([
|
return $this->request->post($url, json_encode([
|
||||||
'appid' => $this->config->getAppid(),
|
'appid' => $this->config->getAppid(),
|
||||||
'content' => $content
|
'content' => $content
|
||||||
|
|||||||
Reference in New Issue
Block a user