From a94dc1415ac44d898fd28164e42d75a7dea7840f Mon Sep 17 00:00:00 2001 From: lhpqaq <657407891@qq.com> Date: Wed, 28 Aug 2024 15:02:04 +0800 Subject: [PATCH 1/2] test pr ci --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 95c2fe3..3bf8a53 100755 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( func main() { h := server.Default(server.WithHostPorts(conf.GetConf().Hertz.Address)) - h.Use(interceptor.CheckToken) + h.Use(interceptor.CheckToken) h.Use(interceptor.Cors) excludedPaths := []string{ "/shop", From ba318dc2a5baabe5d3a86c80ecd8f1c71f1f6328 Mon Sep 17 00:00:00 2001 From: lhpqaq <657407891@qq.com> Date: Wed, 28 Aug 2024 15:05:17 +0800 Subject: [PATCH 2/2] fix fmt --- main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main.go b/main.go index 3bf8a53..52c7adf 100755 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( func main() { h := server.Default(server.WithHostPorts(conf.GetConf().Hertz.Address)) - h.Use(interceptor.CheckToken) + h.Use(interceptor.CheckToken) h.Use(interceptor.Cors) excludedPaths := []string{ "/shop", @@ -32,15 +32,6 @@ func main() { "/blog", } - // excludedPaths := map[string]bool{ - // "/shop": true, - // "/voucher": true, - // "/shop-type/list": true, - // "/upload": true, - // "/blog/hot": true, - // "/user/code": true, - // "/user/login": true, - // } h.Use(func(ctx context.Context, c *app.RequestContext) { path := string(c.Request.Path()) for i := 0; i < len(excludedPaths); i++ {