From adb2c7d3e16377c362a56e19cc25c695fe40c2dc Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 10 Jan 2020 19:37:23 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index e90c1da..225f061 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -579,7 +579,6 @@ class HttpClient $result['message'] = ''; } else { $result['code'] = $body[$this->errorCodeField] ?? 0; - if (strpos($this->errorMsgField, '.') !== false) { $parent = []; $explode = explode('.', $this->errorMsgField); @@ -598,6 +597,9 @@ class HttpClient break; } } + + var_dump($parent); + $result['message'] = $parent ?? 'system success.'; } else { $result['message'] = $body[$this->errorMsgField] ?? 'system success.';