Commit 01e2d66d authored by chenweijian's avatar chenweijian

家族

parent c184eee5
......@@ -751,6 +751,15 @@ func GroupPowerInfo(c *gin.Context) (*mycontext.MyContext, error) {
if info.Icon != "" {
info.Icon = common.MakeFullUrl(info.Icon)
}
if info.Nameplate == "" {
groupInfo, err := group_m.GetGroupInfoByOwner(model, myUserId)
if err != nil {
return myContext, err
}
if groupInfo != nil {
info.Nameplate = groupInfo.Name
}
}
// 我在该家族中的角色
myPU := groupPower_m.GroupPowerUser{UserId: myUserId}
myGroupPUser, err := myPU.GetGroupPowerUser(model)
......
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