|
@@ -117,17 +117,6 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { |
|
|
// 如果未助力过, 助力人数 + 1 添加助力信息 |
|
|
// 如果未助力过, 助力人数 + 1 添加助力信息 |
|
|
if !exist { |
|
|
if !exist { |
|
|
teamAssistance.AssistedNum++ |
|
|
teamAssistance.AssistedNum++ |
|
|
m := model.EggEnergyAssistanceDetail{ |
|
|
|
|
|
Uid: msg.Uid, |
|
|
|
|
|
AssistedUid: msg.AssistanceUid, |
|
|
|
|
|
SignId: msg.SignId, |
|
|
|
|
|
CreatedAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
UpdatedAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
} |
|
|
|
|
|
_, err = detailDb.AssistanceDetailInsert(&m) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
teamAssistance.AssistedTimes++ |
|
|
teamAssistance.AssistedTimes++ |
|
|
_, err = assistanceDb.EggEnergyTeamAssistanceUpdate(teamAssistance.Id, teamAssistance, "assisted_num", "reward_score", "assisted_times") |
|
|
_, err = assistanceDb.EggEnergyTeamAssistanceUpdate(teamAssistance.Id, teamAssistance, "assisted_num", "reward_score", "assisted_times") |
|
|