修改获取短信验证码的key的规则

This commit is contained in:
wangchenglin committed 2019-06-17 11:11:23 +08:00
1 parent 6da4461a29
commit cf49e46c2c
1 file changed
+1 -1
@@ -67,7 +67,7 @@ public class MobileServiceImpl implements MobileService {
return R.ok(Boolean.FALSE, "手机号未注册");
}
Object codeObj = pigxRedisTemplate.opsForValue().get(CommonConstants.DEFAULT_CODE_KEY + mobile);
Object codeObj = pigxRedisTemplate.opsForValue().get(CommonConstants.DEFAULT_CODE_KEY + LoginTypeEnum.SMS.getType() + "@" + mobile);
if (codeObj != null) {
log.info("手机号验证码未过期:{},{}", mobile, codeObj);