From 7d1b66ea6ef547d12bb92ef6753e00737c5f2808 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Mon, 23 Dec 2024 11:44:32 +0800 Subject: [PATCH] fix team assistance count assistedNum err --- consume/egg_energy_team_assistance_consume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/egg_energy_team_assistance_consume.go b/consume/egg_energy_team_assistance_consume.go index 12b9b0d..28f5c9d 100644 --- a/consume/egg_energy_team_assistance_consume.go +++ b/consume/egg_energy_team_assistance_consume.go @@ -128,7 +128,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { } else { teamAssistance.RewardScore = utils2.Float64ToStr(msg.AssistanceValue + utils2.StrToFloat64(teamAssistance.RewardScore)) // 如果是第一条说明还没有被记录过, 助力人数 + 1 - if count == 1 { + if count == 0 { teamAssistance.AssistedNum++ } teamAssistance.AssistedTimes++