From 461c734a6eb6693a7177bcbd65b959e808719dae Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Wed, 8 May 2024 10:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=82=E6=95=B0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/middlewares/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/middlewares/base.go b/app/http/middlewares/base.go index b9fe55c..c333221 100644 --- a/app/http/middlewares/base.go +++ b/app/http/middlewares/base.go @@ -56,7 +56,7 @@ func AdminAuth() gin.HandlerFunc { func ValidateRequest() gin.HandlerFunc { return func(c *gin.Context) { - var path = c.Request.RequestURI + var path = c.FullPath() var handler func() interface{} if strings.Index(path, "admin") >= 0 { handler = requestmapping.BackendRequestMap[path]