add clear
This commit is contained in:
@@ -710,7 +710,7 @@ class HttpClient
|
||||
if (is_array($body)) {
|
||||
return $body;
|
||||
}
|
||||
$type = $data['Content-Type'] ?? 'text/html';
|
||||
$type = $data['content-type'] ?? 'text/html';
|
||||
if (strpos($type, 'text/html') !== false) {
|
||||
return $body;
|
||||
} else if (strpos($type, 'json') !== false) {
|
||||
|
||||
@@ -142,9 +142,6 @@ 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');
|
||||
|
||||
Reference in New Issue
Block a user