|
@@ -57,7 +57,11 @@ func Login(c *gin.Context) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if utils.Md5(req.PassWord) != admin.Password { |
|
|
if utils.Md5(req.PassWord) != admin.Password { |
|
|
e.OutErr(c, e.ERR_INVALID_ARGS, "密码错误") |
|
|
|
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "密码错误")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if admin.State == 2 { |
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "账号被禁用")) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
ip := utils.GetIP(c.Request) |
|
|
ip := utils.GetIP(c.Request) |
|
|