add clear
This commit is contained in:
@@ -28,7 +28,9 @@ 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']);
|
||||||
return $this->request->post($this->_url . $this->config->getAccessToken(), ['media' => new \CURLFile($path)]);
|
return $this->request->post($this->_url . $this->config->getAccessToken(), [
|
||||||
|
'appid' => $this->config->getAppid(), 'media' => new \CURLFile($path)
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -45,7 +47,9 @@ 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');
|
||||||
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), ['content' => $content]);
|
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), [
|
||||||
|
'appid' => $this->config->getAppid(), 'content' => $content
|
||||||
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user