add clear

This commit is contained in:
as2252258@163.com
2020-01-03 11:47:29 +08:00
parent c9d7f52845
commit 089f52c585
+2 -7
View File
@@ -467,15 +467,10 @@ class HttpClient
if (is_array($body)) {
return $body;
}
if (strpos($type, 'json') !== false) {
return json_decode($body, true);
} else if (strpos($type, 'xml') !== false) {
return Help::toArray($body);
} else if (strpos($type, 'plain') !== false) {
return Help::toArray($body);
} else {
if (strpos($type, 'html') !== false) {
return $body;
}
return Help::toArray($body);
}
/**