Commit 30b91a59 by 刘红梅

mock 假数据

parent 1c9c6be7
......@@ -41,7 +41,7 @@ public class SmsServiceImpl implements SmsService {
// smsCodeRedisCache.delete(key);
return true;
}
return false;
return true;
}
/**
......@@ -55,7 +55,7 @@ public class SmsServiceImpl implements SmsService {
//String code = RandomUtil.randomNumbers(6);
String code = "666666";
String key = "sms:code:" + phone;
//redisTemplate.opsForValue().set(key, code, 60 * 60 * 1L);// 存入 Redis,设置过期时间为5分钟
redisTemplate.opsForValue().set(key, code, 60 * 60 * 1L);// 存入 Redis,设置过期时间为5分钟
System.out.println("发送短信验证码:" + phone + " -> " + code);// 模拟发送短信,实际应调用第三方短信服务
return true;
//return sendMasSmsCode(phone);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment