From 3e8017b0d57adea6511a6b7516cd156edc8bc21f Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 7 Mar 2023 17:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=B8=85=E9=9B=B6=E5=90=8E,?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E4=BF=9D=E6=8C=81=E4=B8=80=E6=AE=B5=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/groupPower_m/group_grade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/groupPower_m/group_grade.go b/domain/model/groupPower_m/group_grade.go index 04b14d1..1b9a766 100644 --- a/domain/model/groupPower_m/group_grade.go +++ b/domain/model/groupPower_m/group_grade.go @@ -69,7 +69,7 @@ func IncrGroupPowerExp(txModel *domain.Model, groupPowerId mysql.ID, exp int64) } for grade := groupPower_e.GroupPowerGradeMax; grade >= groupPower_e.GroupPowerGrade0; grade-- { if latestGrade.Exp > groupPower_e.GroupPowerGradeExp[grade] { - if latestGrade.Grade != grade { + if latestGrade.Grade < grade { // 积分清零后,等级保持一段时间 expireAt := now.EndOfMonth() expireAt = utils.AddDate(expireAt, 0, 1) // 等级有效期到下个月月底 updateAttrs := map[string]interface{}{ -- 2.22.0