add clear

This commit is contained in:
as2252258@163.com
2020-03-11 16:41:08 +08:00
parent 5087d6d306
commit e0feb1c891
+6 -2
View File
@@ -28,7 +28,9 @@ class SecCheck extends SmallProgram
}
$this->request->setUseSwoole(false);
$this->request->setHeader(['Content-Type' => 'multipart/form-data']);
return $this->request->post($this->_url . $this->config->getAccessToken(), ['media' => new \CURLFile($path)]);
return $this->request->post($this->_url . $this->config->getAccessToken(), [
'appid' => $this->config->getAppid(), 'media' => new \CURLFile($path)
]);
}
@@ -45,7 +47,9 @@ class SecCheck extends SmallProgram
$this->request->addHeader('Content-Type', 'application/json');
$this->request->setErrorField('errCode');
$this->request->setErrorMsgField('errMsg');
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), ['content' => $content]);
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), [
'appid' => $this->config->getAppid(), 'content' => $content
]);
}