add clear
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
]));
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user