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() //上次开始的时间