From 66f82a44eac15438888bf6ac71879bf775c8b281 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 12 Sep 2023 18:08:37 +0800 Subject: [PATCH] fix --- utils/basic/request_parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/basic/request_parse.go b/utils/basic/request_parse.go index 91473639..e876d174 100644 --- a/utils/basic/request_parse.go +++ b/utils/basic/request_parse.go @@ -124,7 +124,7 @@ func RequestParse(w http.ResponseWriter, r *http.Request, svcCtx any, LogicReque userinfo, err := ParseJwtToken(r, svcCtx) if err != nil { httpx.OkJsonCtx(r.Context(), w, &Response{ - Code: 510, + Code: 401, Message: err.Error(), }) return nil, err