修改获取验证码

This commit is contained in:
2024-09-20 15:48:13 +08:00
parent 8d4bb9bbf8
commit c6bb1d0840
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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() {