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...feature/mic_change_redis
Source
feature/mic_change_redis
Select Git revision
...
Target
master
Select Git revision
Compare
Commits (1)
feature/mic_change_redis
· 7a4d8e86
JiebinHu
authored
Sep 02, 2023
7a4d8e86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
micData.go
domain/model/group_m/micData.go
+7
-7
No files found.
domain/model/group_m/micData.go
View file @
7a4d8e86
...
@@ -96,7 +96,7 @@ func MicGroupKickOutRPush(model *domain.Model, groupUid string, userExternalId s
...
@@ -96,7 +96,7 @@ func MicGroupKickOutRPush(model *domain.Model, groupUid string, userExternalId s
}
}
// socket通知被拉黑者退房
// socket通知被拉黑者退房
rpc
.
SendQuitRoom
(
beKickuserId
,
2
,
txGroupId
)
rpc
.
SendQuitRoom
(
beKickuserId
,
2
,
txGroupId
)
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
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
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicGroupKickOutRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
return
}
else
{
}
else
{
...
@@ -130,7 +130,7 @@ func MicSocketMicOutRPush(model *domain.Model, groupUid string, userExternalId s
...
@@ -130,7 +130,7 @@ func MicSocketMicOutRPush(model *domain.Model, groupUid string, userExternalId s
model
.
Log
.
Errorf
(
"MicChangeRPush MicSocketMicOutRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicSocketMicOutRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
return
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicSocketMicOutRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicSocketMicOutRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
return
}
else
{
}
else
{
...
@@ -165,7 +165,7 @@ func MicNumChangeRPush(model *domain.Model, groupUid string, micNumType group_e.
...
@@ -165,7 +165,7 @@ func MicNumChangeRPush(model *domain.Model, groupUid string, micNumType group_e.
model
.
Log
.
Errorf
(
"MicChangeRPush MicNumChangeRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicNumChangeRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
return
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicNumChangeRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicNumChangeRPush err:%+v, groupUuid:%v, micContent:%+v"
,
err
,
groupUid
,
string
(
str
))
return
return
}
else
{
}
else
{
...
@@ -206,7 +206,7 @@ func MicEmptyRPush(model *domain.Model, groupUid string, i int) {
...
@@ -206,7 +206,7 @@ func MicEmptyRPush(model *domain.Model, groupUid string, i int) {
model
.
Log
.
Errorf
(
"MicChangeRPush MicEmptyRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContent
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicEmptyRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContent
))
return
return
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicEmptyRPush err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContent
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicEmptyRPush err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContent
))
return
return
}
else
{
}
else
{
...
@@ -243,7 +243,7 @@ func MicChangeRPush(model *domain.Model, groupUid string, i int) {
...
@@ -243,7 +243,7 @@ func MicChangeRPush(model *domain.Model, groupUid string, i int) {
model
.
Log
.
Errorf
(
"MicChangeRPush MicChangeRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContentStr
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicChangeRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContentStr
))
return
return
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicChangeRPush err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContentStr
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicChangeRPush err:%+v, groupUuid:%v, i:%v, micContent:%+v"
,
err
,
groupUid
,
i
,
string
(
micContentStr
))
return
return
}
else
{
}
else
{
...
@@ -288,7 +288,7 @@ func MicAllRPush(model *domain.Model, groupUid string, externalId string) error
...
@@ -288,7 +288,7 @@ func MicAllRPush(model *domain.Model, groupUid string, externalId string) error
model
.
Log
.
Errorf
(
"MicChangeRPush MicAllRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, externalId:%v, micContent:%+v"
,
err
,
groupUid
,
externalId
,
string
(
micContentStr
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicAllRPush Marshal MicSystemMsg err:%+v, groupUuid:%v, externalId:%v, micContent:%+v"
,
err
,
groupUid
,
externalId
,
string
(
micContentStr
))
continue
continue
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicChangeRPush MicAllRPush err:%+v, groupUuid:%v, externalId:%v, micContent:%+v"
,
err
,
groupUid
,
externalId
,
string
(
micContentStr
))
model
.
Log
.
Errorf
(
"MicChangeRPush MicAllRPush err:%+v, groupUuid:%v, externalId:%v, micContent:%+v"
,
err
,
groupUid
,
externalId
,
string
(
micContentStr
))
continue
continue
}
else
{
}
else
{
...
@@ -312,7 +312,7 @@ func MicRPush(model *domain.Model, txGroupId string, msg GroupSystemMsg) error {
...
@@ -312,7 +312,7 @@ func MicRPush(model *domain.Model, txGroupId string, msg GroupSystemMsg) error {
model
.
Log
.
Errorf
(
"MicRPush Marshal MicSystemMsg err:%+v, txGroupId:%v, micContent:%+v"
,
err
,
txGroupId
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicRPush Marshal MicSystemMsg err:%+v, txGroupId:%v, micContent:%+v"
,
err
,
txGroupId
,
string
(
str
))
return
err
return
err
}
}
if
n
,
err
:=
redisCli
.
GetRedis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
if
n
,
err
:=
redisCli
.
Get
Cluster
Redis
()
.
RPush
(
context
.
Background
(),
redis_key
.
GetMicInfoChange
(),
string
(
str
))
.
Result
();
err
!=
nil
||
n
==
0
{
model
.
Log
.
Errorf
(
"MicRPush err:%+v, txGroupId:%v, micContent:%+v"
,
err
,
txGroupId
,
string
(
str
))
model
.
Log
.
Errorf
(
"MicRPush err:%+v, txGroupId:%v, micContent:%+v"
,
err
,
txGroupId
,
string
(
str
))
return
err
return
err
}
}
...
...