Bläddra i källkod

更新

master
huangjiajun 5 månader sedan
förälder
incheckning
53a8982b1c
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. +3
    -2
      rule/happy_orchard/happy_orchard_give_water.go

+ 3
- 2
rule/happy_orchard/happy_orchard_give_water.go Visa fil

@@ -46,13 +46,14 @@ func HappyOrchardGiveWater(eg *xorm.Engine, masterId string, uid int, isMultiple
if residueWatchAdNum < 0 {
residueWatchAdNum = zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum)
}
_, err2 := eg.Insert(&models.HappyOrchardUserWatchRecords{
UserWatchRecords = &models.HappyOrchardUserWatchRecords{
Uid: uid,
NextWatchAdDate: now.Add(time.Hour * time.Duration(zhios_order_relate_utils.StrToInt(videoRewardSystem.EachRoundHour))),
ResidueWatchAdNum: zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) - 1,
CreateAt: now,
UpdateAt: now,
})
}
_, err2 := eg.Insert(UserWatchRecords)
if err2 != nil {
return err2
}


Laddar…
Avbryt
Spara