Browse Source

fix team assistance count assistedNum err

master
shenjiachi 19 hours ago
parent
commit
7d1b66ea6e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consume/egg_energy_team_assistance_consume.go

+ 1
- 1
consume/egg_energy_team_assistance_consume.go View File

@@ -128,7 +128,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error {
} else { } else {
teamAssistance.RewardScore = utils2.Float64ToStr(msg.AssistanceValue + utils2.StrToFloat64(teamAssistance.RewardScore)) teamAssistance.RewardScore = utils2.Float64ToStr(msg.AssistanceValue + utils2.StrToFloat64(teamAssistance.RewardScore))
// 如果是第一条说明还没有被记录过, 助力人数 + 1 // 如果是第一条说明还没有被记录过, 助力人数 + 1
if count == 1 {
if count == 0 {
teamAssistance.AssistedNum++ teamAssistance.AssistedNum++
} }
teamAssistance.AssistedTimes++ teamAssistance.AssistedTimes++


Loading…
Cancel
Save