From 1cfa3715c4f5a0312fbb2cd6230c751233e8d623 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Wed, 25 Oct 2023 10:56:57 +0800 Subject: [PATCH] Fix --- app/Exceptions/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index fc29c67..62a44b7 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -119,8 +119,8 @@ class Handler extends ExceptionHandler } return response()->json([ - 'errcode' => 422, - 'errmsg' => $firstMessage ?: '参数错误', + 'code' => 422, + 'message' => $firstMessage ?: '参数错误', 'errors' => $errors, ], 200); }