记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
2dcca21b
Commit
2dcca21b
authored
Apr 29, 2025
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加异常捕获
parent
b5e0aa3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
FeishuBotServiceImpl.java
...dnet/service/kylin/service/impl/FeishuBotServiceImpl.java
+7
-2
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/FeishuBotServiceImpl.java
View file @
2dcca21b
...
...
@@ -3,6 +3,7 @@ package com.liquidnet.service.kylin.service.impl;
import
com.liquidnet.commons.lang.util.HttpUtil
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.kylin.service.IFeishuBotService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -10,6 +11,7 @@ import java.util.HashMap;
import
java.util.Map
;
@Service
@Slf4j
public
class
FeishuBotServiceImpl
implements
IFeishuBotService
{
@Value
(
"${liquidnet.feishu.bWebhook}"
)
...
...
@@ -23,7 +25,10 @@ public class FeishuBotServiceImpl implements IFeishuBotService {
Map
<
String
,
Object
>
bodyMap
=
new
HashMap
<>();
bodyMap
.
put
(
"msg_type"
,
"text"
);
bodyMap
.
put
(
"content"
,
textMap
);
HttpUtil
.
postJson
(
bWebhook
,
JsonUtils
.
toJson
(
bodyMap
));
try
{
HttpUtil
.
postJson
(
bWebhook
,
JsonUtils
.
toJson
(
bodyMap
));
}
catch
(
Exception
e
){
log
.
error
(
"error."
,
e
);
}
}
}
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