mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-09-18 06:39:12 +08:00
添加游戏充值商户后台代码
This commit is contained in:
@@ -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("该用户没有登录.......")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user