Commit c89e9806 authored by hujiebin's avatar hujiebin

mic位置效果推送

parent f4ddec6e
......@@ -398,16 +398,26 @@ func getMicIContent(model *domain.Model, groupId string, i int) (MicContent, err
if err != nil {
return MicContent{}, err
}
var micEffect string
var headwearIcon string
if micUser.CpUserId > 0 {
if cpUser, _ := user_m.GetUser(model, micUser.CpUserId); cpUser != nil {
headwearIcon = cpUser.Avatar
}
micEffect = "https://image.whoisamy.shop/hilo/manager/b44eef9674524451b9aa4ba6d34540e9.svga" // todo ui
}
return MicContent{
GroupId: txGroupId,
I: mic.I,
Lock: mic.Lock,
Forbid: micUser.Forbid,
MicForbid: mic.MicForbid,
ExternalId: micUser.ExternalId,
AgoraId: uint32(micUser.UserId),
Timestamp: time.Now().UnixNano(),
User: micUserData,
GroupId: txGroupId,
I: mic.I,
Lock: mic.Lock,
Forbid: micUser.Forbid,
MicForbid: mic.MicForbid,
ExternalId: micUser.ExternalId,
AgoraId: uint32(micUser.UserId),
Timestamp: time.Now().UnixNano(),
User: micUserData,
MicEffect: micEffect,
HeadwearIcon: headwearIcon,
}, 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