Commit cddade8b authored by liming's avatar liming

调整是否需要短信验证码

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