验证各平台cookie是否失效

This commit is contained in:
苏尹岚
2020-01-16 15:20:30 +08:00
parent c73b65ad02
commit e7341c4bfe
3 changed files with 100 additions and 4 deletions

View File

@@ -41,6 +41,10 @@ var (
"01:00:00",
}
createStorePriceTimeList = []string{
"08:00:00",
"18:00:00",
}
checkCookieList = []string{
"02:00:00",
}
refreshPageActTimeList = []string{
@@ -151,6 +155,9 @@ func Init() {
ScheduleTimerFunc("AutoFocusStoreSkusForTopSkus", func() {
cms.AutoFocusStoreSkusForTopSkus(jxcontext.AdminCtx, true, true)
}, createStorePriceTimeList)
ScheduleTimerFunc("GetCheckVendorCookie", func() {
event.GetCheckVendorCookie(jxcontext.AdminCtx, []int{0, 1, 3}, true)
}, checkCookieList)
}
ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
@@ -229,7 +236,7 @@ func doDailyWork() {
//刷新京东门店的等级
cms.RefreshJdLevel(jxcontext.AdminCtx)
//删除操作日志
event.DeleteOperateEventAndDetail(jxcontext.AdminCtx, time.Now().AddDate(0, 0, -7))
event.DeleteOperateEventAndDetail(jxcontext.AdminCtx, time.Now().AddDate(0, -1, 0))
}
func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime time.Time, isAsync, isContinueWhenError bool) (hint string, err error) {