From a836f1ca1b213271d18f99d2a8d62aadc88484da Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 13 Jul 2023 10:21:03 +0800 Subject: [PATCH] test --- app/task/svc/svc_playlet_adv_order.go | 4 ++++ app/task/svc/svc_playlet_video_order.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/task/svc/svc_playlet_adv_order.go b/app/task/svc/svc_playlet_adv_order.go index 17a195f..b846ed8 100644 --- a/app/task/svc/svc_playlet_adv_order.go +++ b/app/task/svc/svc_playlet_adv_order.go @@ -146,6 +146,10 @@ func PlayletAdvOrderMonth() { if day < 5 { return } + hour := time.Now().Hour() + if hour < 3 { + return + } syscfgDb := db.MasterListCfgDb{} syscfgDb.Set() //上次开始的时间 diff --git a/app/task/svc/svc_playlet_video_order.go b/app/task/svc/svc_playlet_video_order.go index 82f737e..fb5e21a 100644 --- a/app/task/svc/svc_playlet_video_order.go +++ b/app/task/svc/svc_playlet_video_order.go @@ -139,6 +139,10 @@ func PlayletVideoOrderMonth() { if day < 5 { return } + hour := time.Now().Hour() + if hour < 3 { + return + } syscfgDb := db.MasterListCfgDb{} syscfgDb.Set() //上次开始的时间