From d4826968eb403ccfa1bac4006e3d69d03af45651 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 7 Jan 2020 14:10:53 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index f54c3c4..230bf16 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -349,11 +349,10 @@ class HttpClient $body = $this->resolve($header, $body); - if ($client->getStatusCode() != 200) { - return new Result(['code' => $client->getStatusCode(), 'message' => $body, 'header' => $header]); - } - var_dump($ip, $url, $data, $body, $data, $header); + if ($client->getStatusCode() != 200) { + return new Result(['code' => $client->getStatusCode(), 'message' => $body]); + } return $this->structure($body, $data, $header); }