From a86d21e54b96499a848a622e9171b89c22e8b7ee Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 13 Jul 2023 17:21:33 +0800 Subject: [PATCH] test --- app/task/svc/svc_playlet_adv_order.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/task/svc/svc_playlet_adv_order.go b/app/task/svc/svc_playlet_adv_order.go index b846ed8..95aed47 100644 --- a/app/task/svc/svc_playlet_adv_order.go +++ b/app/task/svc/svc_playlet_adv_order.go @@ -101,7 +101,10 @@ func PlayletAdvOrderYesterday(hours int, runtimeStr string) { syscfgDb := db.MasterListCfgDb{} syscfgDb.Set() playletVideoOrderYesterdayRuntime := syscfgDb.MasterListCfgGetOneData(uid, runtimeStr) - if utils.TimeStdParseUnix(playletVideoOrderYesterdayRuntime) > timeRange["start"] { + t := time.Now() + stime := time.Date(t.Year(), t.Month(), t.Day(), hours, 0, 0, 0, t.Location()) + + if utils.TimeStdParseUnix(playletVideoOrderYesterdayRuntime) > stime.Unix() { return } var (