diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 88a51b2ad9cee75e5b4ded6740eb27a60aab9b9f..c5d8e038dcf12c7062f8646651e7d85c5231ae39 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -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)