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
Commits
03cbde0f
Commit
03cbde0f
authored
Aug 15, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退房
parent
8398ada6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
micData.go
domain/model/group_m/micData.go
+1
-1
group_setting.go
route/group_r/group_setting.go
+4
-3
No files found.
domain/model/group_m/micData.go
View file @
03cbde0f
...
...
@@ -95,7 +95,7 @@ func MicGroupKickOutRPush(model *domain.Model, groupUid string, userExternalId s
return
}
// socket通知被拉黑者退房
rpc
.
SendQuitRoom
(
beKickuserId
)
rpc
.
SendQuitRoom
(
beKickuserId
,
2
,
txGroupId
)
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicGroupKickOutRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
...
...
route/group_r/group_setting.go
View file @
03cbde0f
...
...
@@ -523,7 +523,7 @@ func AddGroupBlacklist(c *gin.Context) (*mycontext.MyContext, error) {
signal_s
.
SendCustomMsg
(
model
,
groupId
,
nil
,
string
(
buf
))
}
// socket通知被拉黑者退房
rpc
.
SendQuitRoom
(
user
.
ID
)
rpc
.
SendQuitRoom
(
user
.
ID
,
1
,
txGroupId
)
if
err
=
group_s
.
NewGroupService
(
myContext
)
.
LeaveGroup
(
model
,
groupId
,
user
.
ID
,
externalId
);
err
!=
nil
{
return
myContext
,
err
...
...
@@ -721,6 +721,7 @@ func KickGroupMembers(c *gin.Context) (*mycontext.MyContext, error) {
model
:=
domain
.
CreateModelContext
(
myContext
)
txGroupId
:=
groupId
groupId
,
err
=
group_m
.
ToImGroupId
(
model
,
groupId
)
if
err
!=
nil
{
return
myContext
,
err
...
...
@@ -752,8 +753,8 @@ func KickGroupMembers(c *gin.Context) (*mycontext.MyContext, error) {
Source
:
myExtId
,
Target
:
externalId
,
Content
:
string
(
buf
)}
signal_s
.
SendSignalMsg
(
model
,
groupId
,
systemMsg
,
false
)
}
// socket通知
被拉黑者
退房
rpc
.
SendQuitRoom
(
user
.
ID
)
// socket通知退房
rpc
.
SendQuitRoom
(
user
.
ID
,
2
,
txGroupId
)
if
err
=
group_s
.
NewGroupService
(
myContext
)
.
LeaveGroup
(
model
,
groupId
,
user
.
ID
,
externalId
);
err
!=
nil
{
return
myContext
,
err
...
...
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