Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
3fdcae4e
Commit
3fdcae4e
authored
Apr 25, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送通知栏消息异常捕获
parent
47b8b698
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
core/src/main/java/com/wecloud/im/mq/MqSender.java
+9
-4
No files found.
core/src/main/java/com/wecloud/im/mq/MqSender.java
View file @
3fdcae4e
...
@@ -80,10 +80,15 @@ public class MqSender {
...
@@ -80,10 +80,15 @@ public class MqSender {
* @return
* @return
*/
*/
public
SendResult
orderSend
(
String
topic
,
String
tag
,
PushDTO
pushDTO
)
{
public
SendResult
orderSend
(
String
topic
,
String
tag
,
PushDTO
pushDTO
)
{
log
.
info
(
"mq按顺序发送topic: {} tag: {} 推送内容: {}"
,
topic
,
tag
,
JSON
.
toJSONString
(
pushDTO
));
try
{
SendResult
sendResult
=
rocketMqProducerService
.
orderSend
(
topic
,
tag
,
JSON
.
toJSONString
(
pushDTO
),
1
);
log
.
info
(
"mq按顺序发送topic: {} tag: {} 推送内容: {}"
,
topic
,
tag
,
JSON
.
toJSONString
(
pushDTO
));
log
.
info
(
"mq按顺序发送topic: {} tag: {} 返回结果: {}"
,
topic
,
tag
,
JSON
.
toJSONString
(
sendResult
));
SendResult
sendResult
=
rocketMqProducerService
.
orderSend
(
topic
,
tag
,
JSON
.
toJSONString
(
pushDTO
),
1
);
return
sendResult
;
log
.
info
(
"mq按顺序发送topic: {} tag: {} 返回结果: {}"
,
topic
,
tag
,
JSON
.
toJSONString
(
sendResult
));
return
sendResult
;
}
catch
(
Exception
e
)
{
log
.
info
(
"发送通知栏消息异常 "
,
e
);
return
null
;
}
}
}
...
...
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