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
80cb7eb7
Commit
80cb7eb7
authored
Jun 15, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:离开房间也检查一次
parent
0a48e06b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
group_op.go
domain/service/group_s/group_op.go
+3
-1
cp_test.go
test/cp_test.go
+12
-0
No files found.
domain/service/group_s/group_op.go
View file @
80cb7eb7
...
...
@@ -27,6 +27,7 @@ import (
"hilo-group/domain/model/noble_m"
"hilo-group/domain/model/res_m"
"hilo-group/domain/model/user_m"
"hilo-group/domain/service/group_mic_s"
"hilo-group/domain/service/signal_s"
"hilo-group/myerr"
"hilo-group/myerr/bizerr"
...
...
@@ -418,7 +419,8 @@ func (s *GroupService) RemoveZombie(model *domain.Model, groupId string) (string
//离开房间
func
(
s
*
GroupService
)
GroupLeave
(
userId
uint64
,
externalId
string
,
groupId
string
)
error
{
model
:=
domain
.
CreateModelContext
(
s
.
svc
.
MyContext
)
// check cp麦位置
group_mic_s
.
NewGroupPowerService
(
s
.
svc
.
MyContext
)
.
CheckCpLeaveMic
(
groupId
,
userId
)
_
,
err
:=
group_m
.
RoomLivingLeave
(
model
,
userId
,
externalId
,
groupId
)
return
err
}
...
...
test/cp_test.go
0 → 100644
View file @
80cb7eb7
package
test
import
(
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/rpc"
"testing"
)
func
TestGetCpRelation
(
t
*
testing
.
T
)
{
cpRelation
,
err
:=
rpc
.
GetUserCpRelation
(
domain
.
CreateModelNil
(),
7642
)
t
.
Logf
(
"%v-%v"
,
cpRelation
,
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