Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antai-sport
antai-sport-http-server
Commits
8bdc4ac9
Commit
8bdc4ac9
authored
Apr 22, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文本编辑器和文件上传
parent
ae42d78a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
71 additions
and
46 deletions
+71
-46
CommonSmsService.java
...ai/sport/http/server/common/service/CommonSmsService.java
+2
-2
SmsUtil.java
...java/com/antai/sport/http/server/common/util/SmsUtil.java
+4
-4
application-dev.yaml
mobile-api/src/main/resources/application-dev.yaml
+11
-1
application-local.yaml
mobile-api/src/main/resources/application-local.yaml
+11
-1
application-prod.yaml
mobile-api/src/main/resources/application-prod.yaml
+16
-3
application-test.yaml
mobile-api/src/main/resources/application-test.yaml
+11
-1
application.yaml
mobile-api/src/main/resources/application.yaml
+0
-10
application-common-db-prod.yml
profile/src/main/resources/application-common-db-prod.yml
+2
-2
SportUserService.java
...er/server/api/business/user/service/SportUserService.java
+7
-0
application-dev.yaml
server-api/src/main/resources/application-dev.yaml
+1
-3
application-local.yaml
server-api/src/main/resources/application-local.yaml
+1
-3
application-prod.yaml
server-api/src/main/resources/application-prod.yaml
+4
-3
application-test.yaml
server-api/src/main/resources/application-test.yaml
+1
-3
application.yaml
server-api/src/main/resources/application.yaml
+0
-10
No files found.
common/src/main/java/com/antai/sport/http/server/common/service/CommonSmsService.java
View file @
8bdc4ac9
...
@@ -18,9 +18,9 @@ import java.util.Map;
...
@@ -18,9 +18,9 @@ import java.util.Map;
@Service
@Service
public
class
CommonSmsService
{
public
class
CommonSmsService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
CommonSmsService
.
class
);
Logger
logger
=
LoggerFactory
.
getLogger
(
CommonSmsService
.
class
);
@Value
(
"${aliyun.sms.sign}"
)
@Value
(
"${aliyun.sms.sign
:null
}"
)
private
String
sign
;
private
String
sign
;
@Value
(
"${aliyun.sms.template-code.login}"
)
@Value
(
"${aliyun.sms.template-code.login
:null
}"
)
private
String
loginTemplateCode
;
private
String
loginTemplateCode
;
@Resource
@Resource
...
...
common/src/main/java/com/antai/sport/http/server/common/util/SmsUtil.java
View file @
8bdc4ac9
...
@@ -26,13 +26,13 @@ import java.util.Map;
...
@@ -26,13 +26,13 @@ import java.util.Map;
@Service
@Service
@Slf4j
@Slf4j
public
class
SmsUtil
{
public
class
SmsUtil
{
@Value
(
"${aliyun.access-key-id}"
)
@Value
(
"${aliyun.access-key-id
:null
}"
)
private
String
accessKeyId
;
private
String
accessKeyId
;
@Value
(
"${aliyun.access-key-secret}"
)
@Value
(
"${aliyun.access-key-secret
:null
}"
)
private
String
accessKeySecret
;
private
String
accessKeySecret
;
@Value
(
"${aliyun.sms.region-id}"
)
@Value
(
"${aliyun.sms.region-id
:null
}"
)
private
String
regionId
;
private
String
regionId
;
@Value
(
"${aliyun.sms.time-out}"
)
@Value
(
"${aliyun.sms.time-out
:null
}"
)
private
String
timeOut
;
private
String
timeOut
;
static
final
String
PRODUCT
=
"Dysmsapi"
;
static
final
String
PRODUCT
=
"Dysmsapi"
;
static
final
String
DOMAIN
=
"dysmsapi.aliyuncs.com"
;
static
final
String
DOMAIN
=
"dysmsapi.aliyuncs.com"
;
...
...
mobile-api/src/main/resources/application-dev.yaml
View file @
8bdc4ac9
...
@@ -11,4 +11,14 @@ spring:
...
@@ -11,4 +11,14 @@ spring:
swagger
:
swagger
:
enable
:
true
enable
:
true
game-server-address
:
http://8.141.144.99:3333/close?MatchId=force
game-server-address
:
http://8.141.144.99:3333/close?MatchId=force
\ No newline at end of file
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
mobile-api/src/main/resources/application-local.yaml
View file @
8bdc4ac9
...
@@ -10,4 +10,14 @@ spring:
...
@@ -10,4 +10,14 @@ spring:
swagger
:
swagger
:
enable
:
true
enable
:
true
game-server-address
:
http://127.0.0.1:3333/close?MatchId=force
game-server-address
:
http://127.0.0.1:3333/close?MatchId=force
\ No newline at end of file
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
mobile-api/src/main/resources/application-prod.yaml
View file @
8bdc4ac9
...
@@ -4,8 +4,21 @@ spring:
...
@@ -4,8 +4,21 @@ spring:
-
common-db-prod
-
common-db-prod
redis
:
redis
:
database
:
0
database
:
0
host
:
1
27.0.0.1
host
:
1
72.18.83.254
port
:
6379
port
:
6379
password
:
ENC(
yKZoKLWfAj6BRglq4C2HWWjsL64maeCm
)
password
:
ENC(
UgcvbmfTyoBY7fyKdpGFyiKZj7ICxY21K1P8o7UITfI=
)
game-server-address
:
http://8.141.144.99:3333/close?MatchId=force
game-server-address
:
http://127.0.0.1:3333/close?MatchId=force
\ No newline at end of file
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
mobile-api/src/main/resources/application-test.yaml
View file @
8bdc4ac9
...
@@ -11,4 +11,14 @@ spring:
...
@@ -11,4 +11,14 @@ spring:
swagger
:
swagger
:
enable
:
true
enable
:
true
game-server-address
:
http://39.106.215.44:3333/close?MatchId=force
game-server-address
:
http://39.106.215.44:3333/close?MatchId=force
\ No newline at end of file
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
mobile-api/src/main/resources/application.yaml
View file @
8bdc4ac9
...
@@ -66,16 +66,6 @@ swagger:
...
@@ -66,16 +66,6 @@ swagger:
ignored-parameter-list
:
ignored-parameter-list
:
-
com.antai.sport.http.server.repository.sport.entity.SportUser
-
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
:
mybatis-plus
:
global-config
:
global-config
:
db-config
:
db-config
:
...
...
profile/src/main/resources/application-common-db-prod.yml
View file @
8bdc4ac9
...
@@ -3,8 +3,8 @@ spring:
...
@@ -3,8 +3,8 @@ spring:
include
:
include
:
-
common-db
-
common-db
datasource
:
datasource
:
url
:
jdbc:mysql://1
27.0.0.1
:3306/antaisport${project.mysql-url-params}
url
:
jdbc:mysql://1
72.18.83.254
:3306/antaisport${project.mysql-url-params}
username
:
root
username
:
root
password
:
ENC(
eeesjD8BM2hklNwdDv4FCDoaVZF9c8+2
)
password
:
ENC(
vQgVFzEziSR9FmgW4qrF3el0Lu9IWgnlaHiDt91uO4U=
)
server-api/src/main/java/com/antai/sport/http/server/server/api/business/user/service/SportUserService.java
View file @
8bdc4ac9
...
@@ -30,6 +30,13 @@ public class SportUserService {
...
@@ -30,6 +30,13 @@ public class SportUserService {
RespUserHomeInfo
resp
=
new
RespUserHomeInfo
();
RespUserHomeInfo
resp
=
new
RespUserHomeInfo
();
SportUser
sportUser
=
sportUserMapper
.
selectById
(
userId
);
SportUser
sportUser
=
sportUserMapper
.
selectById
(
userId
);
SportUserSummary
sportUserSummary
=
sportUserSummaryBusinessMapper
.
selectBySportTypeAndUserId
(
userId
,
SportType
.
BICYCLE
);
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
.
setId
(
sportUser
.
getId
());
resp
.
setAvatar
(
sportUser
.
getAvatar
());
resp
.
setAvatar
(
sportUser
.
getAvatar
());
resp
.
setNickname
(
sportUser
.
getNickname
());
resp
.
setNickname
(
sportUser
.
getNickname
());
...
...
server-api/src/main/resources/application-dev.yaml
View file @
8bdc4ac9
...
@@ -9,6 +9,4 @@ spring:
...
@@ -9,6 +9,4 @@ spring:
password
:
123456
password
:
123456
swagger
:
swagger
:
enable
:
true
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
server-api/src/main/resources/application-local.yaml
View file @
8bdc4ac9
...
@@ -8,6 +8,4 @@ spring:
...
@@ -8,6 +8,4 @@ spring:
port
:
6379
port
:
6379
swagger
:
swagger
:
enable
:
true
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
server-api/src/main/resources/application-prod.yaml
View file @
8bdc4ac9
...
@@ -4,8 +4,9 @@ spring:
...
@@ -4,8 +4,9 @@ spring:
-
common-db-prod
-
common-db-prod
redis
:
redis
:
database
:
0
database
:
0
host
:
1
27.0.0.1
host
:
1
72.18.83.254
port
:
6379
port
:
6379
password
:
ENC(
yKZoKLWfAj6BRglq4C2HWWjsL64maeCm
)
password
:
ENC(
UgcvbmfTyoBY7fyKdpGFyiKZj7ICxY21K1P8o7UITfI=
)
game-server-address
:
http://8.141.144.99:3333/close?MatchId=force
swagger
:
\ No newline at end of file
enable
:
true
\ No newline at end of file
server-api/src/main/resources/application-test.yaml
View file @
8bdc4ac9
...
@@ -9,6 +9,4 @@ spring:
...
@@ -9,6 +9,4 @@ spring:
password
:
ENC(yKZoKLWfAj6BRglq4C2HWWjsL64maeCm)
password
:
ENC(yKZoKLWfAj6BRglq4C2HWWjsL64maeCm)
swagger
:
swagger
:
enable
:
true
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
server-api/src/main/resources/application.yaml
View file @
8bdc4ac9
...
@@ -42,16 +42,6 @@ swagger:
...
@@ -42,16 +42,6 @@ swagger:
description
:
接口文档
description
:
接口文档
service-website
:
https://www.antaikeji.top/
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
:
mybatis-plus
:
global-config
:
global-config
:
db-config
:
db-config
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment