add clear

This commit is contained in:
2020-08-24 11:50:17 +08:00
parent f8724a8c36
commit 562f06cc49
+1 -2
View File
@@ -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)