diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 7b5e04075..3fe7a9ff3 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -6,6 +6,7 @@ import ( "time" "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/business/jxstore/act" "git.rosy.net.cn/jx-callback/business/jxstore/cms" "git.rosy.net.cn/jx-callback/business/jxutils" "git.rosy.net.cn/jx-callback/business/jxutils/jxcontext" @@ -17,6 +18,25 @@ import ( "git.rosy.net.cn/jx-callback/globals" ) +var ( + refreshPageActTimeList = []string{ + "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", + } +) + func Init() { StartRefreshEbaiRealMobile() StartDailyWork() @@ -24,6 +44,10 @@ func Init() { ScheduleTimerFunc(func() { cms.SaveAndSendAlarmVendorSnapshot(jxcontext.AdminCtx, nil, nil) }, cms.WatchVendorStoreTimeList) + + ScheduleTimerFunc(func() { + act.RefreshPageActs(jxcontext.AdminCtx, []int{model.VendorIDEBAI}, time.Now().Add(-30*24*time.Hour), false) + }, refreshPageActTimeList) } }