Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
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-common
Commits
05891cb0
Commit
05891cb0
authored
Jul 24, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送socket的麦位变化
parent
12cd6a28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
26 deletions
+27
-26
userProxy.proto
protocol/userProxy.proto
+2
-2
user_center_func.go
rpc/user_center_func.go
+25
-24
No files found.
protocol/userProxy.proto
View file @
05891cb0
...
@@ -437,7 +437,7 @@ message GroupMicChange {
...
@@ -437,7 +437,7 @@ message GroupMicChange {
bool
forbid
=
5
;
bool
forbid
=
5
;
bool
micForbid
=
6
;
bool
micForbid
=
6
;
string
externalId
=
7
;
string
externalId
=
7
;
string
agoraId
=
8
;
uint32
agoraId
=
8
;
int64
timestamp
=
9
;
int64
timestamp
=
9
;
MicUserData
user
=
10
;
MicUserData
user
=
10
;
}
}
...
@@ -459,7 +459,7 @@ message MicUserData {
...
@@ -459,7 +459,7 @@ message MicUserData {
string
headwearPicUrl
=
9
;
string
headwearPicUrl
=
9
;
string
headwearEffectUrl
=
10
;
string
headwearEffectUrl
=
10
;
string
headwearReverseEffectUrl
=
11
;
string
headwearReverseEffectUrl
=
11
;
int32
svipLevel
=
12
;
u
int32
svipLevel
=
12
;
string
micEffect
=
14
;
string
micEffect
=
14
;
string
headwearIcon
=
15
;
string
headwearIcon
=
15
;
}
}
...
...
rpc/user_center_func.go
View file @
05891cb0
...
@@ -400,33 +400,34 @@ func SendSvipUpgrade(nick, avatar string, svipLevel uint32, txGroupId string) er
...
@@ -400,33 +400,34 @@ func SendSvipUpgrade(nick, avatar string, svipLevel uint32, txGroupId string) er
}
}
// 发送socket的麦位变化
// 发送socket的麦位变化
// todo fix
func
SendSocketMicChange
(
userId
uint64
,
externalId
,
txGroupId
string
,
i
uint32
,
lock
,
forbid
,
micForbid
bool
,
agoraId
uint32
,
func
SendSocketMicChange
(
userId
uint64
)
error
{
avatar
,
nick
string
,
sex
uint32
,
code
string
,
isVip
bool
,
noble
uint32
,
headwearPicUrl
,
headwearEffectUrl
,
headwearReverseEffectUrl
string
,
svipLevel
uint32
,
micEffect
,
headwearIcon
string
)
error
{
var
msg
=
&
userProxy
.
GroupMicChange
{
var
msg
=
&
userProxy
.
GroupMicChange
{
SeqId
:
"todo"
,
SeqId
:
"todo"
,
// todo todo
GroupId
:
"todo"
,
GroupId
:
txGroupId
,
I
:
1
,
I
:
i
,
Lock
:
true
,
Lock
:
lock
,
Forbid
:
f
alse
,
Forbid
:
f
orbid
,
MicForbid
:
false
,
MicForbid
:
micForbid
,
ExternalId
:
"1234"
,
ExternalId
:
externalId
,
AgoraId
:
"todotodo"
,
AgoraId
:
agoraId
,
Timestamp
:
time
.
Now
()
.
Unix
(),
Timestamp
:
time
.
Now
()
.
Unix
(),
User
:
&
userProxy
.
MicUserData
{
User
:
&
userProxy
.
MicUserData
{
Id
:
1
,
Id
:
userId
,
ExternalId
:
""
,
ExternalId
:
externalId
,
Avatar
:
""
,
Avatar
:
avatar
,
Nick
:
""
,
Nick
:
nick
,
Sex
:
0
,
Sex
:
sex
,
Code
:
""
,
Code
:
code
,
IsVip
:
false
,
IsVip
:
isVip
,
Noble
:
0
,
Noble
:
noble
,
HeadwearPicUrl
:
""
,
HeadwearPicUrl
:
headwearPicUrl
,
HeadwearEffectUrl
:
""
,
HeadwearEffectUrl
:
headwearEffectUrl
,
HeadwearReverseEffectUrl
:
""
,
HeadwearReverseEffectUrl
:
headwearReverseEffectUrl
,
SvipLevel
:
0
,
SvipLevel
:
svipLevel
,
MicEffect
:
""
,
MicEffect
:
micEffect
,
HeadwearIcon
:
"1231"
,
HeadwearIcon
:
headwearIcon
,
},
},
}
}
if
buffer
,
err
:=
proto
.
Marshal
(
msg
);
err
==
nil
{
if
buffer
,
err
:=
proto
.
Marshal
(
msg
);
err
==
nil
{
...
...
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