add clear
This commit is contained in:
@@ -105,6 +105,10 @@ abstract class Miniprogarampage implements Progaram
|
|||||||
public function initConfig($config)
|
public function initConfig($config)
|
||||||
{
|
{
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
$this->request->setUseSwoole($config->isUsrSwoole());
|
||||||
|
$this->request->setAgent($config->getAgent());
|
||||||
|
$this->request->addHeader('ssl_cert_file', $config->getSslCert());
|
||||||
|
$this->request->addHeader('ssl_key_file', $config->getSslKey());
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ class Account extends SmallProgram
|
|||||||
$this->request->setHost('api.q.qq.com');
|
$this->request->setHost('api.q.qq.com');
|
||||||
$this->request->setMethod(HttpClient::GET);
|
$this->request->setMethod(HttpClient::GET);
|
||||||
$this->request->addHeader('Content-Type', 'text/xml');
|
$this->request->addHeader('Content-Type', 'text/xml');
|
||||||
// $this->request->setUseSwoole($this->config->isUsrSwoole());
|
$this->request->setUseSwoole($this->config->isUsrSwoole());
|
||||||
|
|
||||||
return $this->request->get('sns/jscode2session', $param);
|
return $this->request->get('sns/jscode2session', $param);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user