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
85d0935c
Commit
85d0935c
authored
May 09, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/xiaohudou_20220427' into xiaohudou_20220427
parents
00b2281a
4f9663dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+0
-2
core/src/main/java/com/wecloud/im/service/impl/ImInboxServiceImpl.java
+4
-0
core/src/main/java/com/wecloud/im/vo/ConversationVo.java
+1
-1
No files found.
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
85d0935c
...
@@ -1238,8 +1238,6 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
...
@@ -1238,8 +1238,6 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
content
.
put
(
"operator"
,
imClientSender
.
getClientId
());
//操作的client ID
content
.
put
(
"operator"
,
imClientSender
.
getClientId
());
//操作的client ID
content
.
put
(
"passivityOperator"
,
clientToConversation
.
getClientId
());
//被操作的client ID
content
.
put
(
"passivityOperator"
,
clientToConversation
.
getClientId
());
//被操作的client ID
imMessage
.
setContent
(
JsonUtils
.
encodeJson
(
content
));
imMessage
.
setContent
(
JsonUtils
.
encodeJson
(
content
));
// 保存消息至消息表
imMessage
.
setId
(
messageId
);
imMessage
.
setId
(
messageId
);
imMessage
.
setMsgType
(
MsgTypeEnum
.
INVITE_CLIENT_JOIN_CONVERSATION
.
getUriCode
());
imMessage
.
setMsgType
(
MsgTypeEnum
.
INVITE_CLIENT_JOIN_CONVERSATION
.
getUriCode
());
imMessage
.
setCreateTime
(
new
Date
());
imMessage
.
setCreateTime
(
new
Date
());
...
...
core/src/main/java/com/wecloud/im/service/impl/ImInboxServiceImpl.java
View file @
85d0935c
...
@@ -194,6 +194,10 @@ public class ImInboxServiceImpl extends BaseServiceImpl<ImInboxMapper, ImInbox>
...
@@ -194,6 +194,10 @@ public class ImInboxServiceImpl extends BaseServiceImpl<ImInboxMapper, ImInbox>
for
(
Long
msgId
:
msgIds
)
{
for
(
Long
msgId
:
msgIds
)
{
// 查询该消息
// 查询该消息
ImMessage
imMessageDb
=
imMessageService
.
getById
(
msgId
);
ImMessage
imMessageDb
=
imMessageService
.
getById
(
msgId
);
if
(
imMessageDb
==
null
)
{
log
.
info
(
"查无消息内容: {}"
,
msgId
);
continue
;
}
// 根据会话id查询该会话所有成员
// 根据会话id查询该会话所有成员
List
<
ImConversationMembers
>
membersList
=
imConversationMembersService
.
list
(
List
<
ImConversationMembers
>
membersList
=
imConversationMembersService
.
list
(
new
QueryWrapper
<
ImConversationMembers
>().
lambda
()
new
QueryWrapper
<
ImConversationMembers
>().
lambda
()
...
...
core/src/main/java/com/wecloud/im/vo/ConversationVo.java
View file @
85d0935c
...
@@ -54,7 +54,7 @@ public class ConversationVo implements Serializable {
...
@@ -54,7 +54,7 @@ public class ConversationVo implements Serializable {
@ApiModelProperty
(
"成员"
)
@ApiModelProperty
(
"成员"
)
private
String
members
;
private
String
members
;
@ApiModelProperty
(
"会话属性,1:单聊,2:普通群,3:万人群"
)
@ApiModelProperty
(
"会话属性,1:单聊,2:普通群,3:万人群
4:聊天室
"
)
private
Integer
chatType
;
private
Integer
chatType
;
@ApiModelProperty
(
"群成员数"
)
@ApiModelProperty
(
"群成员数"
)
...
...
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