add clear

This commit is contained in:
as2252258@163.com
2019-09-19 18:58:46 +08:00
parent 6ff5ecc853
commit d605600657
2 changed files with 22 additions and 0 deletions
+21
View File
@@ -107,6 +107,27 @@ class Config
*/
private $key = '';
private $access_token = '';
private $agent = '';
/**
* @return string
*/
public function getAgent(): string
{
return $this->agent;
}
/**
* @param string $agent
* @return Config
*/
public function setAgent(string $agent): Config
{
$this->agent = $agent;
return $this;
}
/**
* @return string
+1
View File
@@ -29,6 +29,7 @@ abstract class Miniprogarampage
$this->request = new WxClient();
}
$this->request->setIsSSL(true);
$this->request->setAgent($this->config->getAgent());
}
/**