Commit 7b5bbc73 authored by hujiebin's avatar hujiebin

Update mic_change.go

parent e0e6c8ca
......@@ -44,9 +44,13 @@ func MicAllRPush(model *domain.Model, txGroupUid string, userId uint64, external
if err != nil {
continue
}
tmpMicUser := new(group_m.MicUserData)
if micContent.User != nil {
tmpMicUser = micContent.User
}
if err := rpc.SendSocketMicChange(userId, externalId, txGroupUid, uint32(micContent.I), micContent.Lock, micContent.Forbid, micContent.MicForbid, micContent.AgoraId,
micContent.User.Id, micContent.User.ExternalId, micContent.User.Avatar, micContent.User.Nick, uint32(micContent.User.Sex), micContent.User.Code, micContent.User.IsVip, uint32(micContent.User.NobleLeave),
micContent.User.HeadwearPicUrl, micContent.User.HeadwearEffectUrl, micContent.User.HeadwearReverseEffectUrl, uint32(micContent.User.SvipLevel), micContent.User.MicEffect, micContent.User.HeadwearIcon); err != nil {
tmpMicUser.Id, tmpMicUser.ExternalId, tmpMicUser.Avatar, tmpMicUser.Nick, uint32(tmpMicUser.Sex), tmpMicUser.Code, tmpMicUser.IsVip, uint32(tmpMicUser.NobleLeave),
tmpMicUser.HeadwearPicUrl, tmpMicUser.HeadwearEffectUrl, tmpMicUser.HeadwearReverseEffectUrl, uint32(tmpMicUser.SvipLevel), tmpMicUser.MicEffect, tmpMicUser.HeadwearIcon); err != nil {
model.Log.Errorf("MicAllRPush err:%+v, groupUuid:%v, externalId:%v, micContent:%+v", err, txGroupUid, externalId, string(micContentStr))
} else {
model.Log.Infof("MicChangeRPush MicAllRPush Marshal micContent, groupUuid:%v, externalId:%v, micContent:%+v", txGroupUid, externalId, string(micContentStr))
......
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