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
fa6458c9
Commit
fa6458c9
authored
Jun 30, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复: 防手贱用户重复拉黑用户
parent
27a6a890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
common/src/main/java/com/wecloud/im/service/impl/ImClientBlacklistServiceImpl.java
+4
-4
common/src/main/java/com/wecloud/im/tillo/app_ws/receive/ReadWsData.java
+0
-1
No files found.
common/src/main/java/com/wecloud/im/service/impl/ImClientBlacklistServiceImpl.java
View file @
fa6458c9
...
...
@@ -57,7 +57,6 @@ public class ImClientBlacklistServiceImpl extends BaseServiceImpl<ImClientBlackl
.
eq
(
ImClient:
:
getFkAppid
,
client
.
getFkAppid
())
.
eq
(
ImClient:
:
getClientId
,
imClientBlacklistUpdate
.
getClientIdBePrevent
()));
ImClientBlacklist
imClientBlacklist
=
new
ImClientBlacklist
();
imClientBlacklist
.
setId
(
SnowflakeUtil
.
getId
());
imClientBlacklist
.
setCreateTime
(
new
Date
());
...
...
@@ -72,18 +71,19 @@ public class ImClientBlacklistServiceImpl extends BaseServiceImpl<ImClientBlackl
@Override
public
ApiResult
<
Boolean
>
removeImClientBlacklist
(
ImClientBlacklistUpdate
imClientBlacklistUpdate
)
throws
Exception
{
// 操作者
ImClient
client
=
imClientService
.
getClient
();
// 被拉黑者
ImClient
client1
=
imClientService
.
getOne
(
new
QueryWrapper
<
ImClient
>().
lambda
()
.
eq
(
ImClient:
:
getFkAppid
,
client
.
getFkAppid
())
.
eq
(
ImClient:
:
getClientId
,
imClientBlacklistUpdate
.
getClientIdBePrevent
()));
ImClientBlacklist
one
=
this
.
getOne
(
new
QueryWrapper
<
ImClientBlacklist
>().
lambda
()
// 删除
boolean
remove
=
this
.
remove
(
new
QueryWrapper
<
ImClientBlacklist
>().
lambda
()
.
eq
(
ImClientBlacklist:
:
getFkClientIdPrevent
,
client
.
getId
())
.
eq
(
ImClientBlacklist:
:
getFkClientIdBePrevent
,
client1
.
getId
()));
this
.
deleteImClientBlacklist
(
one
.
getId
());
return
ApiResult
.
ok
();
}
...
...
common/src/main/java/com/wecloud/im/tillo/app_ws/receive/ReadWsData.java
View file @
fa6458c9
...
...
@@ -79,5 +79,4 @@ public class ReadWsData {
}
}
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