Commit 05891cb0 authored by hujiebin's avatar hujiebin

发送socket的麦位变化

parent 12cd6a28
...@@ -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; uint32 svipLevel = 12;
string micEffect = 14; string micEffect = 14;
string headwearIcon = 15; string headwearIcon = 15;
} }
......
...@@ -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: false, Forbid: forbid,
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 {
......
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