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
f78c4891
Commit
f78c4891
authored
May 30, 2022
by
wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改被拉入群没有事件通知bug
parent
126f953c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
common/src/main/java/com/wecloud/im/service/impl/ImConversationMembersServiceImpl.java
+6
-2
No files found.
common/src/main/java/com/wecloud/im/service/impl/ImConversationMembersServiceImpl.java
View file @
f78c4891
...
@@ -244,6 +244,10 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
...
@@ -244,6 +244,10 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
return
true
;
return
true
;
}
}
ImClient
operatorClient
=
imClientService
.
getOne
(
new
QueryWrapper
<
ImClient
>().
lambda
()
.
eq
(
ImClient:
:
getFkAppid
,
imApplication
.
getId
())
.
eq
(
ImClient:
:
getClientId
,
imConversationMemApiAdd
.
getOperator
()));
ImClient
passivityOperatorClient
=
imClientService
.
getOne
(
new
QueryWrapper
<
ImClient
>().
lambda
()
ImClient
passivityOperatorClient
=
imClientService
.
getOne
(
new
QueryWrapper
<
ImClient
>().
lambda
()
.
eq
(
ImClient:
:
getFkAppid
,
imApplication
.
getId
())
.
eq
(
ImClient:
:
getFkAppid
,
imApplication
.
getId
())
.
eq
(
ImClient:
:
getClientId
,
imConversationMemApiAdd
.
getPassivityOperator
()));
.
eq
(
ImClient:
:
getClientId
,
imConversationMemApiAdd
.
getPassivityOperator
()));
...
@@ -294,7 +298,7 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
...
@@ -294,7 +298,7 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
imMessage
.
setId
(
messageId
);
imMessage
.
setId
(
messageId
);
imMessage
.
setCreateTime
(
new
Date
());
imMessage
.
setCreateTime
(
new
Date
());
imMessage
.
setFkAppid
(
imApplication
.
getId
());
imMessage
.
setFkAppid
(
imApplication
.
getId
());
imMessage
.
setSender
(
0L
);
imMessage
.
setSender
(
operatorClient
.
getId
()
);
imMessage
.
setWithdraw
(
false
);
imMessage
.
setWithdraw
(
false
);
imMessage
.
setEvent
(
true
);
imMessage
.
setEvent
(
true
);
imMessage
.
setSystem
(
false
);
imMessage
.
setSystem
(
false
);
...
@@ -304,7 +308,7 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
...
@@ -304,7 +308,7 @@ public class ImConversationMembersServiceImpl extends BaseServiceImpl<ImConversa
//推送到被拉入方
//推送到被拉入方
Long
fkConversationId
=
imConversationMemApiAdd
.
getConversationId
();
Long
fkConversationId
=
imConversationMemApiAdd
.
getConversationId
();
String
clientId
=
"0"
;
String
clientId
=
imConversationMemApiAdd
.
getOperator
()
;
String
toClientId
=
passivityOperatorClient
.
getClientId
();
String
toClientId
=
passivityOperatorClient
.
getClientId
();
String
imApplicationAppKey
=
imApplication
.
getAppKey
();
String
imApplicationAppKey
=
imApplication
.
getAppKey
();
sendEventMsg
(
messageId
,
(
HashMap
)
content
,
fkConversationId
,
clientId
,
toClientId
,
imApplicationAppKey
);
sendEventMsg
(
messageId
,
(
HashMap
)
content
,
fkConversationId
,
clientId
,
toClientId
,
imApplicationAppKey
);
...
...
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