From 53fab4645491c0ee0a32c5a2c6dc882e9df5d13f Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期四, 14 十二月 2023 10:44:49 +0800
Subject: [PATCH] 解决bug
---
pkg/contextx/contextx.go | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/pkg/contextx/contextx.go b/pkg/contextx/contextx.go
index 958df06..6137a2c 100644
--- a/pkg/contextx/contextx.go
+++ b/pkg/contextx/contextx.go
@@ -4,7 +4,6 @@
"github.com/gin-gonic/gin"
"net/http"
"srm/pkg/ecode"
- "srm/pkg/logx"
)
type (
@@ -29,14 +28,14 @@
return
}
- defer func() {
- query := r.ctx.Request.URL.RawQuery
- if query != "" {
- query = "?" + query
- }
- urlPath := r.ctx.Request.URL.Path
- logx.Infof("%s | %s %s | uid: %s | %+v", ctx.ClientIP(), r.ctx.Request.Method, urlPath+query, r.GetUserId(), params)
- }()
+ //defer func() {
+ // query := r.ctx.Request.URL.RawQuery
+ // if query != "" {
+ // query = "?" + query
+ // }
+ // urlPath := r.ctx.Request.URL.Path
+ // logx.Infof("%s | %s %s | uid: %s | %+v", ctx.ClientIP(), r.ctx.Request.Method, urlPath+query, r.GetUserId(), params)
+ //}()
// validate params
if params != nil {
--
Gitblit v1.8.0