From b4ed7c69a6616b2177bb895f4b0673c798cc2fc8 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Mon, 16 May 2022 19:36:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Support/Response.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Support/Response.php b/app/Support/Response.php index 74e6436..8581206 100644 --- a/app/Support/Response.php +++ b/app/Support/Response.php @@ -39,10 +39,9 @@ class Response $resp = [ "code" => ResponseCode::SUCCESS, "message" => $message, + "data" => $data, ]; - if ($data) $resp["data"] = $data; - return $this->response->json($resp); }