update AppUserServiceImpl.java

This commit is contained in:
linfeng 2023-12-18 13:51:12 +08:00
parent 10c0037e18
commit 7534b2e153

View File

@ -195,7 +195,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
@Override
public String sendSmsCode(SendCodeForm param) {
String code = RandomUtil.randomNumbers(6);
String code = RandomUtil.randomNumbers(Constant.SMS_SIZE);
String codeKey = Constant.SMS_PREFIX + param.getMobile();
String s = redisUtils.get(codeKey);
if (ObjectUtil.isNotNull(s)) {