Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangb committed Jan 12, 2022
1 parent 4c97794 commit 3ca290c
Show file tree
Hide file tree
Showing 6 changed files with 292 additions and 262 deletions.
2 changes: 1 addition & 1 deletion example/sample1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func initRouter(s *ghttp.Server) {
AuthExcludePaths: g.SliceStr{"/user/info", "/system/user/info"}, // 不拦截路径 /user/info,/system/user/info,/system/user,
GlobalMiddleware: true, // 开启全局拦截
}
err := gfToken.Start(ctx)
err := gfToken.Start()
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion example/sample1/test/server1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func initRouter(s *ghttp.Server) {
AuthExcludePaths: g.SliceStr{"/user/info", "/system/user/info"}, // 不拦截路径 /user/info,/system/user/info,/system/user,
GlobalMiddleware: true, // 开启全局拦截
}
err := gfToken.Start(ctx)
err := gfToken.Start()
if err != nil {
panic(err)
}
Expand Down
Loading

0 comments on commit 3ca290c

Please sign in to comment.