Commit c89e9806 authored by hujiebin's avatar hujiebin

mic位置效果推送

parent f4ddec6e
...@@ -398,6 +398,14 @@ func getMicIContent(model *domain.Model, groupId string, i int) (MicContent, err ...@@ -398,6 +398,14 @@ func getMicIContent(model *domain.Model, groupId string, i int) (MicContent, err
if err != nil { if err != nil {
return MicContent{}, err 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{ return MicContent{
GroupId: txGroupId, GroupId: txGroupId,
I: mic.I, I: mic.I,
...@@ -408,6 +416,8 @@ func getMicIContent(model *domain.Model, groupId string, i int) (MicContent, err ...@@ -408,6 +416,8 @@ func getMicIContent(model *domain.Model, groupId string, i int) (MicContent, err
AgoraId: uint32(micUser.UserId), AgoraId: uint32(micUser.UserId),
Timestamp: time.Now().UnixNano(), Timestamp: time.Now().UnixNano(),
User: micUserData, User: micUserData,
MicEffect: micEffect,
HeadwearIcon: headwearIcon,
}, nil }, 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