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
5a291ad0
Commit
5a291ad0
authored
Jul 12, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
团练通知
parent
087ca3d1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
TeamTrainingChangeNotifyService.java
...teamtraining/service/TeamTrainingChangeNotifyService.java
+4
-4
TeamTrainingService.java
...pi/business/teamtraining/service/TeamTrainingService.java
+2
-2
application-dev.yaml
...aining-leader-api/src/main/resources/application-dev.yaml
+1
-1
application-local.yaml
...ning-leader-api/src/main/resources/application-local.yaml
+1
-1
application-prod.yaml
...ining-leader-api/src/main/resources/application-prod.yaml
+1
-1
application-test.yaml
...ining-leader-api/src/main/resources/application-test.yaml
+1
-1
No files found.
team-training-leader-api/src/main/java/com/antai/sport/http/server/team/training/leader/api/business/teamtraining/service/TeamTrainingChangeNotifyService.java
View file @
5a291ad0
...
...
@@ -11,17 +11,17 @@ import javax.annotation.Resource;
@Service
@Slf4j
public
class
TeamTrainingChangeNotifyService
{
@Value
(
"${
simple-match
-change-notify-url}"
)
private
String
simpleMatch
ChangeNotifyUrl
;
@Value
(
"${
team-training
-change-notify-url}"
)
private
String
teamTraining
ChangeNotifyUrl
;
@Resource
private
RestTemplate
restTemplate
;
@Async
(
"asyncTaskExecutor"
)
public
void
notifyGameServer
SimpleMatch
Change
()
{
public
void
notifyGameServer
TeamTraining
Change
()
{
log
.
info
(
"异步通知比赛列表变更"
);
String
result
=
"执行失败"
;
try
{
result
=
restTemplate
.
getForObject
(
simpleMatch
ChangeNotifyUrl
,
String
.
class
);
result
=
restTemplate
.
getForObject
(
teamTraining
ChangeNotifyUrl
,
String
.
class
);
}
catch
(
Exception
ex
)
{
log
.
error
(
ex
.
getMessage
());
}
...
...
team-training-leader-api/src/main/java/com/antai/sport/http/server/team/training/leader/api/business/teamtraining/service/TeamTrainingService.java
View file @
5a291ad0
...
...
@@ -75,7 +75,7 @@ public class TeamTrainingService {
teamTraining
.
setStatus
(
10
);
}
teamTrainingMapper
.
updateById
(
teamTraining
);
// simpleMatchChangeNotifyService.notifyGameServerSimpleMatch
Change();
teamTrainingChangeNotifyService
.
notifyGameServerTeamTraining
Change
();
}
public
TeamTrainingResponseDTO
getTraining
(
Long
trainingId
)
{
...
...
@@ -127,7 +127,7 @@ public class TeamTrainingService {
training
.
setLeaderId
(
loginUser
.
getId
());
teamTrainingMapper
.
insert
(
training
);
}
// teamTrainingChangeNotifyService.notifyGameServerSimpleMatch
Change();
teamTrainingChangeNotifyService
.
notifyGameServerTeamTraining
Change
();
}
}
team-training-leader-api/src/main/resources/application-dev.yaml
View file @
5a291ad0
...
...
@@ -21,4 +21,4 @@ aliyun:
bucket-name
:
antai-sport
cdn-url
:
http://antai-sport.oss-cn-beijing.aliyuncs.com/
simple-match-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
team-training-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
team-training-leader-api/src/main/resources/application-local.yaml
View file @
5a291ad0
...
...
@@ -20,4 +20,4 @@ aliyun:
bucket-name
:
antai-sport
cdn-url
:
http://antai-sport.oss-cn-beijing.aliyuncs.com/
simple-match-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
team-training-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
team-training-leader-api/src/main/resources/application-prod.yaml
View file @
5a291ad0
...
...
@@ -21,7 +21,7 @@ aliyun:
bucket-name
:
shanghaijingji-sport-prod
cdn-url
:
https://shanghaijingji-sport-prod.oss-cn-shanghai.aliyuncs.com/
simple-match-change-notify-url
:
http://127.0.0.1:3281/api/match
/update
team-training-change-notify-url
:
http://127.0.0.1:3281/api/team/training
/update
logging
:
config
:
classpath:logback-spring-prod.xml
\ No newline at end of file
team-training-leader-api/src/main/resources/application-test.yaml
View file @
5a291ad0
...
...
@@ -21,4 +21,4 @@ aliyun:
bucket-name
:
antai-sport
cdn-url
:
http://antai-sport.oss-cn-beijing.aliyuncs.com/
simple-match-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
team-training-change-notify-url
:
http://47.100.168.51:3281/api/match/update
\ No newline at end of file
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