✨ Introducing new features. 更新app端登录信息适配单体模块

This commit is contained in:
aeizzz committed 2023-01-30 14:44:10 +08:00
1 parent f13bade19e
commit 6843d5ab59
2 files changed
+4 -2

No files matched your search

@@ -69,7 +69,7 @@ public class AppMobileServiceImpl implements AppMobileService {
}
Object codeObj = redisTemplate.opsForValue()
.get(CacheConstants.DEFAULT_CODE_KEY + LoginTypeEnum.SMS.getType() + StringPool.AT + mobile);
.get(CacheConstants.DEFAULT_CODE_KEY + LoginTypeEnum.APPSMS.getType() + StringPool.AT + mobile);
if (codeObj != null) {
log.info("手机号验证码未过期:{},{}", mobile, codeObj);
@@ -79,7 +79,7 @@ public class AppMobileServiceImpl implements AppMobileService {
String code = RandomUtil.randomNumbers(Integer.parseInt(SecurityConstants.CODE_SIZE));
log.debug("手机号生成验证码成功:{},{}", mobile, code);
redisTemplate.opsForValue().set(
CacheConstants.DEFAULT_CODE_KEY + LoginTypeEnum.SMS.getType() + StringPool.AT + mobile, code,
CacheConstants.DEFAULT_CODE_KEY + LoginTypeEnum.APPSMS.getType() + StringPool.AT + mobile, code,
SecurityConstants.CODE_TIME, TimeUnit.SECONDS);
return R.ok(Boolean.TRUE, code);
}
@@ -38,6 +38,8 @@ public enum LoginTypeEnum {
*/
SMS("SMS", "验证码登录"),
APPSMS("APP-SMS", "APP验证码登录"),
/**
* QQ登录
*/