add clear
This commit is contained in:
@@ -73,9 +73,6 @@ abstract class Miniprogarampage implements Progaram
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->request = HttpClient::NewRequest();
|
||||
$this->request->setIsSSL(true);
|
||||
$this->request->setData(null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,6 +103,9 @@ abstract class Miniprogarampage implements Progaram
|
||||
public function initConfig($config)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->request = HttpClient::NewRequest();
|
||||
$this->request->setIsSSL(true);
|
||||
$this->request->setData(null);
|
||||
$this->request->setUseSwoole($config->isUsrSwoole());
|
||||
$this->request->setAgent($config->getAgent());
|
||||
if (!empty($config->getSslCert())) {
|
||||
@@ -118,7 +118,7 @@ abstract class Miniprogarampage implements Progaram
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \common\Config
|
||||
* @return \wchat\common\Config
|
||||
*/
|
||||
public function getConfig()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user