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
aeb18ed4
Commit
aeb18ed4
authored
May 07, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加对图片类型消息的处理
parent
859a8711
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
core/src/main/java/com/wecloud/im/entity/ImMessageOnlineSend.java
+3
-0
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
+1
-0
core/src/main/java/com/wecloud/im/ws/sender/ChannelSender.java
+1
-1
No files found.
core/src/main/java/com/wecloud/im/entity/ImMessageOnlineSend.java
View file @
aeb18ed4
...
@@ -62,4 +62,7 @@ public class ImMessageOnlineSend extends BaseEntity {
...
@@ -62,4 +62,7 @@ public class ImMessageOnlineSend extends BaseEntity {
@ApiModelProperty
(
"会话id"
)
@ApiModelProperty
(
"会话id"
)
private
Long
conversationId
;
private
Long
conversationId
;
@ApiModelProperty
(
"文件"
)
private
Object
file
;
}
}
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
View file @
aeb18ed4
...
@@ -868,6 +868,7 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
...
@@ -868,6 +868,7 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
imMessageOnlineSend
.
setSystemFlag
(
message
.
getSystemFlag
());
imMessageOnlineSend
.
setSystemFlag
(
message
.
getSystemFlag
());
imMessageOnlineSend
.
setType
(
message
.
getMsgType
());
imMessageOnlineSend
.
setType
(
message
.
getMsgType
());
imMessageOnlineSend
.
setAt
(
message
.
getAt
());
imMessageOnlineSend
.
setAt
(
message
.
getAt
());
imMessageOnlineSend
.
setFile
(
content
);
return
imMessageOnlineSend
;
return
imMessageOnlineSend
;
}
}
...
...
core/src/main/java/com/wecloud/im/ws/sender/ChannelSender.java
View file @
aeb18ed4
...
@@ -146,7 +146,7 @@ public class ChannelSender {
...
@@ -146,7 +146,7 @@ public class ChannelSender {
// 调用本地下发
// 调用本地下发
log
.
info
(
"在线用户入参 {}, 具体ip结果 {}"
,
toClientId
,
JSON
.
toJSONString
(
channelInfoEntry
));
log
.
info
(
"在线用户入参 {}, 具体ip结果 {}"
,
toClientId
,
JSON
.
toJSONString
(
channelInfoEntry
));
for
(
ClientChannelInfo
clientChannelInfo
:
channelInfoEntry
.
getValue
())
{
for
(
ClientChannelInfo
clientChannelInfo
:
channelInfoEntry
.
getValue
())
{
log
.
info
(
"客户端 {}, 推送消息内容 {}"
,
toClientId
,
JSON
.
toJSONString
(
msgJson
)
);
log
.
info
(
"客户端 {}, 推送消息内容 {}"
,
toClientId
,
msgJson
);
this
.
sendMsgLocal
(
toClientId
,
clientChannelInfo
.
getPlatform
(),
msgJson
);
this
.
sendMsgLocal
(
toClientId
,
clientChannelInfo
.
getPlatform
(),
msgJson
);
}
}
continue
;
continue
;
...
...
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