add clear
This commit is contained in:
@@ -142,11 +142,14 @@ class PublicTemplate extends SmallProgram
|
||||
if (!empty($this->miniprogram)) {
|
||||
$default['miniprogram'] = $this->miniprogram;
|
||||
}
|
||||
|
||||
$params = json_encode($default, JSON_UNESCAPED_UNICODE);
|
||||
|
||||
$this->request->setIsSSL(true);
|
||||
$this->request->addHeader('Content-Type', 'application/json');
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
$result = $this->request->post($url, $default);
|
||||
$result = $this->request->post($url, $params);
|
||||
$result->append('postBody', $default);
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user