|
@@ -96,19 +96,19 @@ func PlayletAdvOrderYesterday(hours int, runtimeStr string) { |
|
|
timeRange := utils.GetTimeRange("today") |
|
|
timeRange := utils.GetTimeRange("today") |
|
|
hour := time.Now().Hour() |
|
|
hour := time.Now().Hour() |
|
|
if hour < hours { |
|
|
if hour < hours { |
|
|
return |
|
|
|
|
|
|
|
|
//return |
|
|
} |
|
|
} |
|
|
syscfgDb := db.MasterListCfgDb{} |
|
|
syscfgDb := db.MasterListCfgDb{} |
|
|
syscfgDb.Set() |
|
|
syscfgDb.Set() |
|
|
playletVideoOrderYesterdayRuntime := syscfgDb.MasterListCfgGetOneData(uid, runtimeStr) |
|
|
playletVideoOrderYesterdayRuntime := syscfgDb.MasterListCfgGetOneData(uid, runtimeStr) |
|
|
t := time.Now() |
|
|
t := time.Now() |
|
|
stime := time.Date(t.Year(), t.Month(), t.Day(), hours, 0, 0, 0, t.Location()) |
|
|
|
|
|
|
|
|
stime := time.Date(t.Year(), t.Month(), t.Day(), hours+2, 0, 0, 0, t.Location()) |
|
|
|
|
|
|
|
|
if utils.TimeStdParseUnix(playletVideoOrderYesterdayRuntime) > stime.Unix() { |
|
|
if utils.TimeStdParseUnix(playletVideoOrderYesterdayRuntime) > stime.Unix() { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
var ( |
|
|
var ( |
|
|
beginTime int64 = timeRange["start"] - 86400 |
|
|
|
|
|
|
|
|
beginTime int64 = timeRange["start"] - 86400*10 |
|
|
endTime int64 = timeRange["start"] |
|
|
endTime int64 = timeRange["start"] |
|
|
pageNo int = 1 |
|
|
pageNo int = 1 |
|
|
pageSize int = 200 |
|
|
pageSize int = 200 |
|
|