Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
c4fde06676
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      rule/happy_orchard/happy_orchard_give_water.go

+ 1
- 2
rule/happy_orchard/happy_orchard_give_water.go View File

@@ -1,7 +1,6 @@
package happy_orchard package happy_orchard


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db/model"
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md"
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/happy_orchard/md" md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/happy_orchard/md"
zhios_order_relate_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/utils" zhios_order_relate_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/utils"
@@ -47,7 +46,7 @@ func HappyOrchardGiveWater(eg *xorm.Engine, masterId string, uid int, isMultiple
if residueWatchAdNum < 0 { if residueWatchAdNum < 0 {
residueWatchAdNum = zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) residueWatchAdNum = zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum)
} }
_, err2 := eg.Insert(&model.OneCirclesUserWatchRecords{
_, err2 := eg.Insert(&models.HappyOrchardUserWatchRecords{
Uid: uid, Uid: uid,
NextWatchAdDate: now.Add(time.Hour * time.Duration(zhios_order_relate_utils.StrToInt(videoRewardSystem.EachRoundHour))), NextWatchAdDate: now.Add(time.Hour * time.Duration(zhios_order_relate_utils.StrToInt(videoRewardSystem.EachRoundHour))),
ResidueWatchAdNum: zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) - 1, ResidueWatchAdNum: zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) - 1,


Loading…
Cancel
Save