diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 0044001305f570de9cae7cb0956ead1a0072772f..a6ad2db9d5d7505dc99c537c296716c55e9ba8b8 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -742,10 +742,11 @@ func GroupPowerInfo(c *gin.Context) (*mycontext.MyContext, error) { for _, v := range members { resMembers = append(resMembers, &group_power_cv.GroupPowerUser{User: userMap[v.UserId], Role: v.Role}) } + groupPowerGrade, err := groupPower_m.MGetGroupPowerGrade(model, []mysql.ID{gp.ID}) info := &group_power_cv.GroupPower{ Id: gpInfo.ID, Name: gpInfo.Name, Nameplate: gpInfo.Nameplate, Declaration: gpInfo.Declaration, Icon: gpInfo.Icon, Grade: gpInfo.Grade, Exp: gpInfo.Exp, NextExp: gpInfo.NextExp, GradeName: gpInfo.GradeName, GradeMedal: gpInfo.GradeMedal, - MemberNum: mysql.Num(total), MemberMax: 300, + MemberNum: mysql.Num(total), MemberMax: mysql.Num(group_power_cv.GroupPowerGradePrivilegeNum[groupPowerGrade[gp.ID].Grade][0].Num), } res := group_power_cv.GroupPowerInfo{Info: info, Members: resMembers}