diff --git a/utils/basic/request_parse.go b/utils/basic/request_parse.go index 42879699..1c0afdf1 100644 --- a/utils/basic/request_parse.go +++ b/utils/basic/request_parse.go @@ -129,6 +129,7 @@ func RequestParse(w http.ResponseWriter, r *http.Request, svcCtx any, LogicReque Code: 510, Message: err.Error(), }) + return nil, err } // 如果端点有请求结构体,则使用httpx.Parse方法从HTTP请求体中解析请求数据