Commit bb4102bb authored by liming's avatar liming

启用短信验证码

parent 0c64b5e5
......@@ -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;
}
}
/**
......
......@@ -14,14 +14,14 @@ swagger:
enable: true
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
access-key-id: LTAI5t5snzXQQehLtRmMKtaf
access-key-secret: mcrjSE8rrZpqHv3l8MBya9jN1jo7Dc
sms:
sign: 安泰实业
region-id: cn-qingdao
sign: 上海竞技
region-id: cn-shanghai
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
login: SMS_239825145 #登录确认验证码
logging:
config: classpath:logback-spring-prod.xml
\ No newline at end of file
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