From fa68f2de307a30c9033b290ac17dc3a9657a796b Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 14 Mar 2023 15:07:41 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=A1=AB=E5=85=85memberMax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/group_power_r/group_power.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 0044001..a6ad2db 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} -- 2.22.0