add clear
This commit is contained in:
@@ -27,7 +27,7 @@ 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']);
|
$this->request->setHeader('Content-Type', 'multipart/form-data');
|
||||||
$this->request->setErrorField('errCode');
|
$this->request->setErrorField('errCode');
|
||||||
$this->request->setErrorMsgField('errMsg');
|
$this->request->setErrorMsgField('errMsg');
|
||||||
return $this->request->post($this->_url . $this->config->getAccessToken(), [
|
return $this->request->post($this->_url . $this->config->getAccessToken(), [
|
||||||
@@ -49,11 +49,11 @@ class SecCheck extends SmallProgram
|
|||||||
$this->request->addHeader('Content-Type', 'application/json');
|
$this->request->addHeader('Content-Type', 'application/json');
|
||||||
$this->request->setErrorField('errCode');
|
$this->request->setErrorField('errCode');
|
||||||
$this->request->setErrorMsgField('errMsg');
|
$this->request->setErrorMsgField('errMsg');
|
||||||
$this->request->setData(json_encode([
|
$this->request->setData(null);
|
||||||
|
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), json_encode([
|
||||||
'appid' => $this->config->getAppid(),
|
'appid' => $this->config->getAppid(),
|
||||||
'content' => $content
|
'content' => $content
|
||||||
]));
|
]));
|
||||||
return $this->request->post($this->_msgUrl . $this->config->getAccessToken());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user