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
f9303908
Commit
f9303908
authored
Apr 28, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:trtc 日志
parent
c26bc62e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
groupInfo.go
domain/model/group_m/groupInfo.go
+2
-0
No files found.
domain/model/group_m/groupInfo.go
View file @
f9303908
...
@@ -593,6 +593,7 @@ func InitTRTC(model *domain.Model, imGroupId string) error {
...
@@ -593,6 +593,7 @@ func InitTRTC(model *domain.Model, imGroupId string) error {
// 初始化trtc房间
// 初始化trtc房间
func
DeleteTRTC
(
model
*
domain
.
Model
,
imGroupId
string
)
error
{
func
DeleteTRTC
(
model
*
domain
.
Model
,
imGroupId
string
)
error
{
model
.
Log
.
Infof
(
"DeleteTRTC , groupId:%s"
,
imGroupId
)
if
err
:=
model
.
DB
()
.
Model
(
GroupTrtc
{})
.
Where
(
"im_group_id = ?"
,
imGroupId
)
.
Delete
(
&
GroupTrtc
{})
.
Error
;
err
!=
nil
{
if
err
:=
model
.
DB
()
.
Model
(
GroupTrtc
{})
.
Where
(
"im_group_id = ?"
,
imGroupId
)
.
Delete
(
&
GroupTrtc
{})
.
Error
;
err
!=
nil
{
model
.
Log
.
Errorf
(
"DeleteTRTC err:%v, groupId:%s"
,
err
,
imGroupId
)
model
.
Log
.
Errorf
(
"DeleteTRTC err:%v, groupId:%s"
,
err
,
imGroupId
)
return
err
return
err
...
@@ -605,5 +606,6 @@ func CountTRTC(model *domain.Model) int64 {
...
@@ -605,5 +606,6 @@ func CountTRTC(model *domain.Model) int64 {
if
err
:=
model
.
DB
()
.
Model
(
GroupTrtc
{})
.
Count
(
&
total
)
.
Error
;
err
!=
nil
{
if
err
:=
model
.
DB
()
.
Model
(
GroupTrtc
{})
.
Count
(
&
total
)
.
Error
;
err
!=
nil
{
model
.
Log
.
Errorf
(
"CountTRTC fail:%v"
,
err
)
model
.
Log
.
Errorf
(
"CountTRTC fail:%v"
,
err
)
}
}
model
.
Log
.
Infof
(
"CountTRTC , total:%v"
,
total
)
return
total
return
total
}
}
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