Commit bb4102bb authored by liming's avatar liming

启用短信验证码

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