测试
This commit is contained in:
parent
f95ec9ef08
commit
ce7cb90744
@ -108,15 +108,11 @@ func (c *BaseController) ResponseError(ps ...interface{}) *BaseController {
|
||||
|
||||
//Logined 登录
|
||||
func (c *BaseController) Logined() *BaseController {
|
||||
if models.Cdle { //作者调试
|
||||
c.Master = true
|
||||
return c
|
||||
}
|
||||
if v := c.GetSession("pin"); v == nil {
|
||||
logs.Warn("test")
|
||||
c.Ctx.Redirect(302, "/")
|
||||
c.StopRun()
|
||||
} else {
|
||||
logs.Warn("登录成功")
|
||||
c.PtPin = v.(string)
|
||||
logs.Warn(v.(string))
|
||||
if strings.Contains(models.Config.Master, v.(string)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user