Browse Source

test

master
huangjiajun 1 year ago
parent
commit
722451a5b8
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      app/db/db_playlet_sale_order.go
  2. +4
    -1
      app/task/svc/svc_playlet_adv_order.go
  3. +1
    -1
      app/task/task_playlet_adv_order_yesterday_to_money.go

+ 1
- 1
app/db/db_playlet_sale_order.go View File

@@ -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
}


+ 4
- 1
app/task/svc/svc_playlet_adv_order.go View File

@@ -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


+ 1
- 1
app/task/task_playlet_adv_order_yesterday_to_money.go View File

@@ -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
}

Loading…
Cancel
Save