Commit cddade8b authored by liming's avatar liming

调整是否需要短信验证码

parent 3d169367
...@@ -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; return code;
if (isProd) { // if (isProd) {
commonSmsService.sendLoginSmsCaptcha(phone, code); // commonSmsService.sendLoginSmsCaptcha(phone, code);
return null; // return null;
} else { // } else {
return code; // 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