From 8a6ea690e007835d265f1e70fb3856c5d70b69e9 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 9 Mar 2023 20:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=AF=94=E4=B8=8A=E6=AC=A1=E8=AE=A1=E7=AE=97=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=B0=8F?= 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 698f795..5f1ba37 100644 --- a/domain/model/groupPower_m/group_grade.go +++ b/domain/model/groupPower_m/group_grade.go @@ -233,7 +233,7 @@ func IncrGroupPowerStarOnMic(model *domain.Model, groupPowerId, userId mysql.ID, if err != nil && err != gorm.ErrRecordNotFound { return err } - if star != nil && joinMicTimestamp == star.LastCalTs { + if star != nil && joinMicTimestamp < star.LastCalTs { // 加入的时间比上次计算时间小 curTs = star.LastCalTs } score := nowTs - curTs -- 2.22.0