瀏覽代碼

update 一个圈圈

master
DengBiao 7 月之前
父節點
當前提交
57b7b6436a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      rule/one_circles/md/one_circles_public_platoon.go
  2. +1
    -1
      rule/one_circles/one_circles_public_platoon_give_activty_coin.go

+ 1
- 1
rule/one_circles/md/one_circles_public_platoon.go 查看文件

@@ -3,7 +3,7 @@ package md
type VideoRewardSystemStruct struct {
RewardValue string `json:"reward_value"` //奖励X个活跃积分
RewardTotalNum string `json:"reward_total_num"` //一共X个奖励视屏
IntervalMinutes string `json:"interval_minutes"` //间隔X分钟
IntervalMinutes string `json:"interval_minutes"` //间隔X
EachRoundHour string `json:"each_round_hour"` //每一轮X个小时
}



+ 1
- 1
rule/one_circles/one_circles_public_platoon_give_activty_coin.go 查看文件

@@ -213,7 +213,7 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid
watchAdDate = oneCirclesUserWatchRecords.NextWatchAdDate.Format("2006-01-02 15:04:05")
}
} else {
watchAdDate = time.Now().Add(time.Duration(zhios_order_relate_utils.StrToInt64(videoRewardSystem.IntervalMinutes)) * time.Minute).Format("2006-01-02 15:04:05")
watchAdDate = time.Now().Add(time.Duration(zhios_order_relate_utils.StrToInt64(videoRewardSystem.IntervalMinutes)) * time.Second).Format("2006-01-02 15:04:05")
//watchAdDate = oneCirclesUserWatchRecords.NextWatchAdDate.Format("2006-01-02 15:04:05")
}
cache.SetEx(redisKey, watchAdDate, 60*60*24) //TODO::默认缓存1小时


Loading…
取消
儲存