add clear

This commit is contained in:
2020-04-01 11:53:15 +08:00
parent 7eeaef4c3b
commit 9dd8ea2d0b
8 changed files with 31 additions and 5 deletions
+2
View File
@@ -28,6 +28,8 @@ class SmallProgram extends Miniprogarampage
'appid' => $this->config->getAppid(),
'secret' => $this->config->getAppsecret()
];
$this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg');
$param = $this->request->get($this->url, $query);
if (!$param->isResultsOK()) {
throw new \Exception($param->getMessage());