add clear
This commit is contained in:
@@ -30,8 +30,12 @@ class SecCheck extends SmallProgram
|
||||
$this->request->setHeader('Content-Type', 'multipart/form-data;charset=UTF-8');
|
||||
$this->request->setErrorField('errCode');
|
||||
$this->request->setErrorMsgField('errMsg');
|
||||
|
||||
|
||||
$real_path = new \CURLFile($path);
|
||||
return $this->request->upload($this->_url . $this->config->getAccessToken(), [
|
||||
'appid' => $this->config->getAppid(), 'media' => $path
|
||||
'appid' => $this->config->getAppid(), 'media' => new \CURLFile($path)
|
||||
, 'form-data[filename]' => $path, 'form-data[content-type]' => $real_path->getMimeType()
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user