|
|
@@ -76,7 +76,11 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { |
|
|
|
assistanceDb := implement.NewEggEnergyTeamAssistanceDb(db.Db) |
|
|
|
now := time.Now() |
|
|
|
date := now.Format("2006-01-02") |
|
|
|
teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOne(msg.Uid, date) |
|
|
|
session := db.Db.Where("") |
|
|
|
teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOneByParamsBySession(session, map[string]interface{}{ |
|
|
|
"key": "sign_id", |
|
|
|
"value": msg.SignId, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
@@ -87,6 +91,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error { |
|
|
|
AssistedTimes: 1, |
|
|
|
RewardScore: utils2.Float64ToStr(msg.AssistanceValue), |
|
|
|
Date: date, |
|
|
|
SignId: msg.SignId, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
} |
|
|
|