add clear

This commit is contained in:
2020-05-22 15:17:24 +08:00
parent 0a3c8ad5c3
commit 9c415292a4
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ abstract class Subject extends Miniprogarampage
$params = json_encode($params, JSON_UNESCAPED_UNICODE);
$this->request->setIsSSL(true);
$this->request->addHeader('content-type', 'application/json');
$this->request->addHeader('Content-Type', 'application/json');
$this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg');
+1 -1
View File
@@ -128,7 +128,7 @@ abstract class Template extends Miniprogarampage
}
$params = json_encode($params, JSON_UNESCAPED_UNICODE);
$this->request->setIsSSL(true);
$this->request->addHeader('content-type', 'application/json');
$this->request->addHeader('Content-Type', 'application/json');
$this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg');
$result = $this->request->post($url, $params);