From 12fa11429e44d0793d754dbb620e27c2c689aa5c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 10 Dec 2024 14:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E8=A7=82=E7=9C=8B=E6=BF=80?= =?UTF-8?q?=E5=8A=B1=E5=B9=BF=E5=91=8A=E8=BF=94=E5=9B=9E=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/egg_energy/give_activty_coin.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 0611732..0e9e452 100644 --- a/rule/egg_energy/give_activty_coin.go +++ b/rule/egg_energy/give_activty_coin.go @@ -204,13 +204,14 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin if residueWatchAdNum < 0 { residueWatchAdNum = egg_system_rules.StrToInt(videoRewardSystem.RewardTotalNum) } - _, err2 := eggEnergyUserWatchRecordsDb.EggEnergyUserWatchRecordsInsert(&model.EggEnergyUserWatchRecords{ + eggEnergyUserWatchRecords = &model.EggEnergyUserWatchRecords{ Uid: uid, NextWatchAdDate: now.Add(time.Hour * time.Duration(egg_system_rules.StrToInt(videoRewardSystem.EachRoundHour))), ResidueWatchAdNum: egg_system_rules.StrToInt(videoRewardSystem.RewardTotalNum) - 1, CreateAt: now.Format("2006-01-02 15:04:05"), UpdateAt: now.Format("2006-01-02 15:04:05"), - }) + } + _, err2 := eggEnergyUserWatchRecordsDb.EggEnergyUserWatchRecordsInsert(eggEnergyUserWatchRecords) if err2 != nil { return rewardValue, err2 }