Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Compare Revisions
master...fix/black_list
Source
fix/black_list
Select Git revision
...
Target
master
Select Git revision
Compare
Commits (1)
特殊处理拉黑
· 79b29243
chenweijian
authored
Apr 23, 2023
79b29243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
group_op.go
domain/service/group_s/group_op.go
+5
-0
No files found.
domain/service/group_s/group_op.go
View file @
79b29243
...
@@ -162,6 +162,11 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin
...
@@ -162,6 +162,11 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin
}
}
// 不是超管 且 用户是否在群的黑名单中
// 不是超管 且 用户是否在群的黑名单中
if
!
isM
&&
group_m
.
InGroupBlackList
(
model
,
groupUuid
,
imei
,
ip
,
userId
)
{
if
!
isM
&&
group_m
.
InGroupBlackList
(
model
,
groupUuid
,
imei
,
ip
,
userId
)
{
// 特殊处理的拉黑列表
blackMap
:=
map
[
string
]
uint64
{
"HTGS#a17058241"
:
3058361
}
if
bUid
,
ok
:=
blackMap
[
groupUuid
];
ok
&&
bUid
==
userId
{
return
bizerr
.
InBlacklist
}
if
svip
.
SvipLevel
<
6
{
// svip6暂时不判断GroupBlackList
if
svip
.
SvipLevel
<
6
{
// svip6暂时不判断GroupBlackList
return
bizerr
.
InBlacklist
return
bizerr
.
InBlacklist
}
}
...
...