mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 13:19:01 +08:00
✨ Introducing new features. 更新app端登录信息适配单体模块
This commit is contained in:
1 parent
f13bade19e
commit
6843d5ab59
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
+2
@@ -38,6 +38,8 @@ public enum LoginTypeEnum {
|
||||
*/
|
||||
SMS("SMS", "验证码登录"),
|
||||
|
||||
APPSMS("APP-SMS", "APP验证码登录"),
|
||||
|
||||
/**
|
||||
* QQ登录
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user