diff --git a/cv/group_power_cv/group_rank.go b/cv/group_power_cv/group_rank.go index 14e9f1243708d6c72163bac763f52adc22481eda..243211416d02814a333ebe0dceb4c8ebdd6ba6f2 100644 --- a/cv/group_power_cv/group_rank.go +++ b/cv/group_power_cv/group_rank.go @@ -30,7 +30,7 @@ type CvGroupPowerMember struct { type CvGroupPowerGrade struct { Grade groupPower_e.GroupPowerGrade `json:"grade"` // 等级 0:青铜 1:白银 2:黄金 3:黑金 Exp uint32 `json:"exp"` // 经验值 - NextExp uint32 `json:"nextExp,omitempty"` // 升级所需经验值 + NextExp uint32 `json:"nextExp,omitempty"` // 下个等级所需经验值 ExpireAt string `json:"expireAt,omitempty"` // 有效期 } diff --git a/route/group_power_r/group_rank.go b/route/group_power_r/group_rank.go index 8207bfb7969aba6b0f04cea6678074c19efb8aae..04d97e673231872d7f2af101beb1775e1adc7b5b 100644 --- a/route/group_power_r/group_rank.go +++ b/route/group_power_r/group_rank.go @@ -198,7 +198,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) { grade := gradeM[groupPowerId] nextExp := mysql.Num(0) if grade.Grade != groupPower_e.GroupPowerGradeMax { - nextExp = groupPower_e.GroupPowerGradeExp[grade.Grade+1] - groupPower_e.GroupPowerGradeExp[grade.Grade] + nextExp = groupPower_e.GroupPowerGradeExp[grade.Grade+1] } expireAt := "" if grade.ExpireAt.After(time.Now()) {