From 1cd3e685e3a2c0f85079cda3d0ea01df5556944f Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Thu, 21 Mar 2024 20:03:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=80=80=E6=AC=BE=E7=90=86=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/mix/controller/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 2f53f076..0509259b 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -482,6 +482,7 @@ func ReplyJsonError(ctx *gin.Context, code int, msg string) { func PrepareOp() gin.HandlerFunc { return func(ctx *gin.Context) { + defer logger.Recover() //if ctx.ClientIP() != "127.0.0.1" { // ReplyJsonError(ctx, http.StatusBadRequest, fmt.Sprintf("not localhost, ip: %s", ctx.ClientIP())) // return