diff --git a/app/db/db_playlet_sale_order.go b/app/db/db_playlet_sale_order.go index f9226da..c59f579 100644 --- a/app/db/db_playlet_sale_order.go +++ b/app/db/db_playlet_sale_order.go @@ -26,7 +26,7 @@ func (playletSaleOrderDb *PlayletSaleOrderDb) GetPlayletVideoOrderByOid(oid, ord } func (playletSaleOrderDb *PlayletSaleOrderDb) PlayletVideoOrderUpdate(id int, data *model.PlayletSaleOrder) bool { - get, err := playletSaleOrderDb.Db.Where("id=?", id).Update(data) + get, err := playletSaleOrderDb.Db.Where("id=?", id).AllCols().Update(data) if get == 0 || err != nil { return false } diff --git a/app/task/svc/svc_playlet_adv_order.go b/app/task/svc/svc_playlet_adv_order.go index 9d6928b..2d4bbd9 100644 --- a/app/task/svc/svc_playlet_adv_order.go +++ b/app/task/svc/svc_playlet_adv_order.go @@ -102,7 +102,10 @@ func PlayletAdvOrderYesterday(hours int, runtimeStr string) { syscfgDb.Set() playletVideoOrderYesterdayRuntime := syscfgDb.MasterListCfgGetOneData(uid, runtimeStr) t := time.Now() - stime := time.Date(t.Year(), t.Month(), t.Day(), hours+2, 0, 0, 0, t.Location()) + if hours == 10 { + hours += 4 + } + stime := time.Date(t.Year(), t.Month(), t.Day(), hours, 0, 0, 0, t.Location()) if utils.TimeStdParseUnix(playletVideoOrderYesterdayRuntime) > stime.Unix() { return diff --git a/app/task/task_playlet_adv_order_yesterday_to_money.go b/app/task/task_playlet_adv_order_yesterday_to_money.go index 61295e0..f31935e 100644 --- a/app/task/task_playlet_adv_order_yesterday_to_money.go +++ b/app/task/task_playlet_adv_order_yesterday_to_money.go @@ -17,6 +17,6 @@ func taskPlayletAdvOrderYesterdayToMoney() { } START: ch <- 1 - svc.PlayletAdvOrderYesterday(12, "playlet_adv_order_yesterday_runtime") + svc.PlayletAdvOrderYesterday(10, "playlet_adv_order_yesterday_runtime") <-ch }