Commit 3d169367 authored by liming's avatar liming

调整是否需要短信验证码

parent 4547ffb4
...@@ -149,13 +149,13 @@ public class SportUserService { ...@@ -149,13 +149,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);
return code;
// 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