add clear
This commit is contained in:
@@ -28,6 +28,8 @@ class SecCheck extends SmallProgram
|
|||||||
}
|
}
|
||||||
$this->request->setUseSwoole(false);
|
$this->request->setUseSwoole(false);
|
||||||
$this->request->setHeader(['Content-Type' => 'multipart/form-data']);
|
$this->request->setHeader(['Content-Type' => 'multipart/form-data']);
|
||||||
|
$this->request->setErrorField('errCode');
|
||||||
|
$this->request->setErrorMsgField('errMsg');
|
||||||
return $this->request->post($this->_url . $this->config->getAccessToken(), [
|
return $this->request->post($this->_url . $this->config->getAccessToken(), [
|
||||||
'appid' => $this->config->getAppid(), 'media' => new \CURLFile($path)
|
'appid' => $this->config->getAppid(), 'media' => new \CURLFile($path)
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user