Commit 70dd203a authored by liming's avatar liming

修改生产环境先不发送短信验证吧

parent f457260c
...@@ -144,12 +144,13 @@ public class SportUserService { ...@@ -144,12 +144,13 @@ public class SportUserService {
public String sendLoginSmsCaptcha(String phone) { public String sendLoginSmsCaptcha(String phone) {
String code = String.valueOf(RandomUtil.generateNum()); String code = String.valueOf(RandomUtil.generateNum());
redisTemplate.opsForValue().set(loginSmsCaptchaRedisKey + phone, code, loginSmsCaptchaExpire, TimeUnit.SECONDS); redisTemplate.opsForValue().set(loginSmsCaptchaRedisKey + phone, code, loginSmsCaptchaExpire, TimeUnit.SECONDS);
if (isProd) {
commonSmsService.sendLoginSmsCaptcha(phone, code);
return null;
} else {
return code; return code;
} // if (isProd) {
// commonSmsService.sendLoginSmsCaptcha(phone, code);
// return null;
// } else {
// return code;
// }
} }
/** /**
......
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