Commit 05891cb0 authored by hujiebin's avatar hujiebin

发送socket的麦位变化

parent 12cd6a28
......@@ -437,7 +437,7 @@ message GroupMicChange {
bool forbid = 5;
bool micForbid = 6;
string externalId = 7;
string agoraId = 8;
uint32 agoraId = 8;
int64 timestamp = 9;
MicUserData user = 10;
}
......@@ -459,7 +459,7 @@ message MicUserData {
string headwearPicUrl = 9;
string headwearEffectUrl = 10;
string headwearReverseEffectUrl = 11;
int32 svipLevel = 12;
uint32 svipLevel = 12;
string micEffect = 14;
string headwearIcon = 15;
}
......
......@@ -400,33 +400,34 @@ func SendSvipUpgrade(nick, avatar string, svipLevel uint32, txGroupId string) er
}
// 发送socket的麦位变化
// todo fix
func SendSocketMicChange(userId uint64) error {
func SendSocketMicChange(userId uint64, externalId, txGroupId string, i uint32, lock, forbid, micForbid bool, agoraId uint32,
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{
SeqId: "todo",
GroupId: "todo",
I: 1,
Lock: true,
Forbid: false,
MicForbid: false,
ExternalId: "1234",
AgoraId: "todotodo",
SeqId: "todo", // todo todo
GroupId: txGroupId,
I: i,
Lock: lock,
Forbid: forbid,
MicForbid: micForbid,
ExternalId: externalId,
AgoraId: agoraId,
Timestamp: time.Now().Unix(),
User: &userProxy.MicUserData{
Id: 1,
ExternalId: "",
Avatar: "",
Nick: "",
Sex: 0,
Code: "",
IsVip: false,
Noble: 0,
HeadwearPicUrl: "",
HeadwearEffectUrl: "",
HeadwearReverseEffectUrl: "",
SvipLevel: 0,
MicEffect: "",
HeadwearIcon: "1231",
Id: userId,
ExternalId: externalId,
Avatar: avatar,
Nick: nick,
Sex: sex,
Code: code,
IsVip: isVip,
Noble: noble,
HeadwearPicUrl: headwearPicUrl,
HeadwearEffectUrl: headwearEffectUrl,
HeadwearReverseEffectUrl: headwearReverseEffectUrl,
SvipLevel: svipLevel,
MicEffect: micEffect,
HeadwearIcon: headwearIcon,
},
}
if buffer, err := proto.Marshal(msg); err == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment