This commit is contained in:
邹宗楠
2023-10-09 10:07:16 +08:00
parent 419895fab1
commit 9aedf80217
2 changed files with 55 additions and 38 deletions

View File

@@ -64,36 +64,37 @@ var (
"04:00:00",
}
refreshPageActTimeList = []string{
"05:00:00",
//"08:00:00",
//"09:00:00",
//"10:00:00",
//"11:00:00",
//"12:00:00",
//"13:00:00",
//"14:00:00",
//"15:00:00",
//"16:00:00",
//"17:00:00",
//"18:00:00",
//"19:00:00",
//"22:00:00", 检查七牛云流量使用情况
"7:00:00",
"8:00:00",
"9:00:00",
"10:00:00",
"11:00:00",
"12:00:00",
"13:00:00",
"14:00:00",
"15:00:00",
"16:00:00",
"17:00:00",
"18:00:00",
"19:00:00",
"22:00:00",
}
// 七牛云流量检查
ChangeStoreSkuSaleStatusList = []string{
"7:20:00",
"8:20:00",
"9:20:00", // 检查七牛云流量使用情况 7:00,8:00,9:00
//"10:00:00",
//"11:00:00",
//"12:00:00",
//"13:00:00",
//"14:00:00",
//"15:00:00",
//"16:00:00",
//"17:00:00",
//"18:00:00",
//"19:00:00",
//"20:00:00",
//"7:00:00",
//"8:00:00",
//"9:00:00",
/* //"10:00:00",
//"11:00:00",
//"12:00:00",
//"13:00:00",
//"14:00:00",
//"15:00:00",
//"16:00:00",
//"17:00:00",
//"18:00:00",
//"19:00:00",
//"20:00:00",*/
}
openRemoteStoreTimeList = []string{
"04:30:00",
@@ -328,15 +329,14 @@ func Init() {
ScheduleTimerFunc("RefreshPageActs", func() {
act.RefreshPageActs(jxcontext.AdminCtx, []int{model.VendorIDEBAI}, time.Now().Add(-30*24*time.Hour), false)
}, refreshPageActTimeList)
ScheduleTimerFunc("UpdateActStatusByTime", func() {
dao.UpdateActStatusByTime(dao.GetDB(), time.Now())
}, updateActStatusTimeList)
ScheduleScoreStore()
// ScheduleCheckStoreAlert()
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, 0, true, true)
}, ChangeStoreSkuSaleStatusList)
//ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
// cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, 0, true, true)
//}, ChangeStoreSkuSaleStatusList)
ScheduleTimerFunc("BeginSavePriceRefer", func() {
report.BeginSavePriceRefer(jxcontext.AdminCtx, nil, nil, true, true)
}, priceReferTimeList)