修改获取验证码
This commit is contained in:
@@ -50,7 +50,7 @@ func (r *Login) Login(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
code, _ := global.Redis.Get(c, "login_code_count_"+req.Mobile).Result()
|
||||
code, _ := global.Redis.Get(c, "login_code_"+req.Mobile).Result()
|
||||
if code == "" {
|
||||
responses.FailWithMessage("验证码失效", c)
|
||||
return
|
||||
@@ -64,6 +64,7 @@ func (r *Login) Login(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
// 开始事务
|
||||
tx := global.Db.Begin()
|
||||
defer func() {
|
||||
|
||||
Reference in New Issue
Block a user