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