add clear

This commit is contained in:
2020-07-30 17:08:36 +08:00
parent df40f74560
commit 7e58adf4ff
+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; charset=utf-8');
$this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg');
$result = $this->request->post($url, $params);