Commit 8bdc4ac9 authored by liming's avatar liming

文本编辑器和文件上传

parent ae42d78a
......@@ -18,9 +18,9 @@ import java.util.Map;
@Service
public class CommonSmsService {
Logger logger = LoggerFactory.getLogger(CommonSmsService.class);
@Value("${aliyun.sms.sign}")
@Value("${aliyun.sms.sign:null}")
private String sign;
@Value("${aliyun.sms.template-code.login}")
@Value("${aliyun.sms.template-code.login:null}")
private String loginTemplateCode;
@Resource
......
......@@ -26,13 +26,13 @@ import java.util.Map;
@Service
@Slf4j
public class SmsUtil {
@Value("${aliyun.access-key-id}")
@Value("${aliyun.access-key-id:null}")
private String accessKeyId;
@Value("${aliyun.access-key-secret}")
@Value("${aliyun.access-key-secret:null}")
private String accessKeySecret;
@Value("${aliyun.sms.region-id}")
@Value("${aliyun.sms.region-id:null}")
private String regionId;
@Value("${aliyun.sms.time-out}")
@Value("${aliyun.sms.time-out:null}")
private String timeOut;
static final String PRODUCT = "Dysmsapi";
static final String DOMAIN = "dysmsapi.aliyuncs.com";
......
......@@ -12,3 +12,13 @@ swagger:
enable: true
game-server-address: http://8.141.144.99:3333/close?MatchId=force
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
\ No newline at end of file
......@@ -11,3 +11,13 @@ swagger:
enable: true
game-server-address: http://127.0.0.1:3333/close?MatchId=force
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
\ No newline at end of file
......@@ -4,8 +4,21 @@ spring:
- common-db-prod
redis:
database: 0
host: 127.0.0.1
host: 172.18.83.254
port: 6379
password: ENC(yKZoKLWfAj6BRglq4C2HWWjsL64maeCm)
password: ENC(UgcvbmfTyoBY7fyKdpGFyiKZj7ICxY21K1P8o7UITfI=)
game-server-address: http://8.141.144.99:3333/close?MatchId=force
\ No newline at end of file
game-server-address: http://127.0.0.1:3333/close?MatchId=force
swagger:
enable: true
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
\ No newline at end of file
......@@ -12,3 +12,13 @@ swagger:
enable: true
game-server-address: http://39.106.215.44:3333/close?MatchId=force
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
\ No newline at end of file
......@@ -66,16 +66,6 @@ swagger:
ignored-parameter-list:
- com.antai.sport.http.server.repository.sport.entity.SportUser
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
mybatis-plus:
global-config:
db-config:
......
......@@ -3,8 +3,8 @@ spring:
include:
- common-db
datasource:
url: jdbc:mysql://127.0.0.1:3306/antaisport${project.mysql-url-params}
url: jdbc:mysql://172.18.83.254:3306/antaisport${project.mysql-url-params}
username: root
password: ENC(eeesjD8BM2hklNwdDv4FCDoaVZF9c8+2)
password: ENC(vQgVFzEziSR9FmgW4qrF3el0Lu9IWgnlaHiDt91uO4U=)
......@@ -30,6 +30,13 @@ public class SportUserService {
RespUserHomeInfo resp = new RespUserHomeInfo();
SportUser sportUser = sportUserMapper.selectById(userId);
SportUserSummary sportUserSummary = sportUserSummaryBusinessMapper.selectBySportTypeAndUserId(userId, SportType.BICYCLE);
if(sportUserSummary == null){
sportUserSummary = new SportUserSummary();
sportUserSummary.setViews(0);
sportUserSummary.setTotalDistance(BigDecimal.ZERO);
sportUserSummary.setTotalClimbDistance(BigDecimal.ZERO);
sportUserSummary.setTotalDuration(0);
}
resp.setId(sportUser.getId());
resp.setAvatar(sportUser.getAvatar());
resp.setNickname(sportUser.getNickname());
......
......@@ -10,5 +10,3 @@ spring:
swagger:
enable: true
\ No newline at end of file
game-server-address: http://8.141.144.99:3333/close?MatchId=force
\ No newline at end of file
......@@ -9,5 +9,3 @@ spring:
swagger:
enable: true
\ No newline at end of file
game-server-address: http://127.0.0.1:3333/close?MatchId=force
\ No newline at end of file
......@@ -4,8 +4,9 @@ spring:
- common-db-prod
redis:
database: 0
host: 127.0.0.1
host: 172.18.83.254
port: 6379
password: ENC(yKZoKLWfAj6BRglq4C2HWWjsL64maeCm)
password: ENC(UgcvbmfTyoBY7fyKdpGFyiKZj7ICxY21K1P8o7UITfI=)
game-server-address: http://8.141.144.99:3333/close?MatchId=force
\ No newline at end of file
swagger:
enable: true
\ No newline at end of file
......@@ -10,5 +10,3 @@ spring:
swagger:
enable: true
\ No newline at end of file
game-server-address: http://8.141.144.99:3333/close?MatchId=force
\ No newline at end of file
......@@ -42,16 +42,6 @@ swagger:
description: 接口文档
service-website: https://www.antaikeji.top/
aliyun:
access-key-id: LTAI4FivP3A9hfXzF5Z2KKNM
access-key-secret: W1erPY4SLOoPK0YwwptLZCSfZ61K4c
sms:
sign: 安泰实业
region-id: cn-qingdao
time-out: 1000
template-code:
login: SMS_136440120 #登录确认验证码
mybatis-plus:
global-config:
db-config:
......
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