From f7fe347ec3290f66aa50bc7cf54aa39b8caf0785 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 2 Jan 2020 14:26:39 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index d16cdab..7e02338 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -478,7 +478,7 @@ class HttpClient } return json_decode($encode, TRUE); } else if (strpos($type, 'plain') !== false) { - return json_decode($data, TRUE); + return json_decode($body, TRUE); } else { return $body; }