From 57b7b6436a5f6bded661854732481e4b254f5158 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 3 Apr 2024 14:40:06 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=80=E4=B8=AA=E5=9C=88=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/one_circles/md/one_circles_public_platoon.go | 2 +- .../one_circles/one_circles_public_platoon_give_activty_coin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/one_circles/md/one_circles_public_platoon.go b/rule/one_circles/md/one_circles_public_platoon.go index 76547e7..104be14 100644 --- a/rule/one_circles/md/one_circles_public_platoon.go +++ b/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个小时 } diff --git a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go index bf58afd..4af3958 100644 --- a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go +++ b/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小时