1111
This commit is contained in:
parent
ce123da9d4
commit
e870b5483e
@ -46,6 +46,7 @@ func (r *Login) Login(c *gin.Context) {
|
||||
|
||||
// 检测验证码
|
||||
if config.C.Env != "dev" {
|
||||
if req.Source == 2 {
|
||||
code, _ := global.Redis.Get(c, "login_code_count_"+req.Mobile).Result()
|
||||
if code == "" {
|
||||
responses.FailWithMessage("验证码失效", c)
|
||||
@ -58,6 +59,7 @@ func (r *Login) Login(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 开始事务
|
||||
tx := global.Db.Begin()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user