add clear

This commit is contained in:
2020-05-21 16:12:20 +08:00
parent cf4c0259f7
commit e3831ad4d8
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -709,7 +709,7 @@ class HttpClient
} else if (strpos($type, 'json') !== false) {
return json_decode($body, true);
} else if (strpos($type, 'xml') !== false) {
return Help::toArray($body);
return Help::xmlToArray($body);
} else if (strpos($type, 'plain') !== false) {
return Help::toArray($body);
}