Bläddra i källkod

update

master
DengBiao 11 månader sedan
förälder
incheckning
17402cbad7
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. +4
    -0
      rule/one_circles/one_circles_public_platoon_give_activty_coin.go

+ 4
- 0
rule/one_circles/one_circles_public_platoon_give_activty_coin.go Visa fil

@@ -91,6 +91,10 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid
}
now := time.Now()
if oneCirclesUserWatchRecords == nil {
residueWatchAdNum := zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) - 1
if residueWatchAdNum < 1 {
residueWatchAdNum = zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum)
}
_, err2 := db.OneCirclesUserWatchRecordsInsert(engine, &model.OneCirclesUserWatchRecords{
Uid: uid,
NextWatchAdDate: now.Add(time.Hour * time.Duration(zhios_order_relate_utils.StrToInt(videoRewardSystem.EachRoundHour))),


Laddar…
Avbryt
Spara