fix 退款理由

This commit is contained in:
lwl0608 2024-03-21 20:03:31 +08:00
parent 1255e0f916
commit 1cd3e685e3
1 changed files with 1 additions and 0 deletions

View File

@ -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