add clear
This commit is contained in:
@@ -27,11 +27,10 @@ class SecCheck extends SmallProgram
|
|||||||
return $this->sendError('文件不存在', 404);
|
return $this->sendError('文件不存在', 404);
|
||||||
}
|
}
|
||||||
$this->request->setUseSwoole(false);
|
$this->request->setUseSwoole(false);
|
||||||
$this->request->setHeader('Content-Type', 'multipart/form-data;charset=UTF-8');
|
$this->request->setHeader('Content-Type', 'multipart/form-data');
|
||||||
$this->request->setErrorField('errCode');
|
$this->request->setErrorField('errCode');
|
||||||
$this->request->setErrorMsgField('errMsg');
|
$this->request->setErrorMsgField('errMsg');
|
||||||
|
|
||||||
|
|
||||||
$real_path = new \CURLFile($path);
|
$real_path = new \CURLFile($path);
|
||||||
return $this->request->upload($this->_url . $this->config->getAccessToken(), [
|
return $this->request->upload($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