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