|
@@ -109,8 +109,8 @@ func (c *AdminWxController) SendSmsCode() {
|
|
|
c.FailWithMessage("发送验证码失败", "发送验证码失败")
|
|
|
return
|
|
|
}
|
|
|
- //存储验证码
|
|
|
- err = utils.Rc.Put(utils.HZ_MOBILE_ADMIN_WXLOGIN_MOBILE_CODE+req.Mobile, code, 5*time.Minute)
|
|
|
+ // 存储验证码,15分钟过期
|
|
|
+ err = utils.Rc.Put(utils.HZ_MOBILE_ADMIN_WXLOGIN_MOBILE_CODE+req.Mobile, code, 15*time.Minute)
|
|
|
if err != nil {
|
|
|
c.FailWithMessage("发送验证码失败", "保存验证码到redis中失败"+err.Error())
|
|
|
return
|