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
1ee1123f
Commit
1ee1123f
authored
Sep 27, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志注释
parent
08992b44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
core/src/main/java/com/wecloud/dispatch/general/GeneralMessageHandler.java
+0
-3
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
+7
-7
No files found.
core/src/main/java/com/wecloud/dispatch/general/GeneralMessageHandler.java
View file @
1ee1123f
...
@@ -59,7 +59,6 @@ public class GeneralMessageHandler {
...
@@ -59,7 +59,6 @@ public class GeneralMessageHandler {
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
actionException
=
ex
;
actionException
=
ex
;
}
}
log
.
info
(
"调用完成"
);
processDispatchResult
(
am
,
res
,
actionException
);
processDispatchResult
(
am
,
res
,
actionException
);
}
}
...
@@ -72,8 +71,6 @@ public class GeneralMessageHandler {
...
@@ -72,8 +71,6 @@ public class GeneralMessageHandler {
private
void
processDispatchResult
(
ActionMessage
am
,
private
void
processDispatchResult
(
ActionMessage
am
,
@Nullable
Object
res
,
@Nullable
Object
res
,
@Nullable
Exception
exception
)
{
@Nullable
Exception
exception
)
{
log
.
info
(
"处理结果"
);
if
(
exception
!=
null
)
{
if
(
exception
!=
null
)
{
log
.
error
(
"dispatch action error:"
,
exception
);
log
.
error
(
"dispatch action error:"
,
exception
);
if
(
exception
instanceof
SpringBootPlusException
)
{
if
(
exception
instanceof
SpringBootPlusException
)
{
...
...
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
View file @
1ee1123f
...
@@ -188,13 +188,13 @@ public class NormalChatAction {
...
@@ -188,13 +188,13 @@ public class NormalChatAction {
// 在线用户直接发消息
// 在线用户直接发消息
Boolean
sendSuccess
=
sendMsgForOnline
(
member
.
getFkClientId
(),
imMessageOnlineSend
);
Boolean
sendSuccess
=
sendMsgForOnline
(
member
.
getFkClientId
(),
imMessageOnlineSend
);
if
(!
sendSuccess
&&
!
member
.
getDoNotDisturb
())
{
//
if (!sendSuccess && !member.getDoNotDisturb()) {
// 异步推送系统通知消息
//
// 异步推送系统通知消息
PushDTO
pushDTO
=
mqSender
.
buildPushDto
(
data
.
getPush
(),
member
.
getFkClientId
(),
member
.
getClientId
(),
imApplication
);
//
PushDTO pushDTO = mqSender.buildPushDto(data.getPush(), member.getFkClientId(), member.getClientId(), imApplication);
if
(
pushDTO
!=
null
)
{
//
if (pushDTO != null) {
mqSender
.
orderSend
(
MqConstant
.
Topic
.
IM_ORDER_MSG_TOPIC
,
MqConstant
.
Tag
.
IM_ORDER_MSG_TAG
,
pushDTO
);
//
mqSender.orderSend(MqConstant.Topic.IM_ORDER_MSG_TOPIC, MqConstant.Tag.IM_ORDER_MSG_TAG, pushDTO);
}
//
}
}
//
}
}
}
// 响应发送方消息id等信息
// 响应发送方消息id等信息
...
...
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