添加游戏充值商户后台代码

This commit is contained in:
kongyuebin
2021-05-16 15:21:52 +08:00
parent a56fa52493
commit 8bd7067c2f
35 changed files with 1921 additions and 246 deletions

View File

@@ -14,10 +14,14 @@ var LoginFilter = func(ctx *context.Context) {
_, ok := ctx.Input.Session("userName").(string)
if !ok {
if ctx.Request.RequestURI == "/login.html" {
return
}
if !strings.Contains(ctx.Request.RequestURI, "/login") {
ctx.Redirect(302, "/login.html")
} else {
logs.Info("该用户没有登录.......")
logs.Error("该用户没有登录.......")
}
}