1
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/bidding"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/tiktok_store"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -214,19 +213,19 @@ func Init() {
|
||||
})
|
||||
|
||||
// 定时任务更新昨天的都要商品和本地商品id的映射关系
|
||||
ScheduleTimerFunc("RefreshStoreOperator", func() {
|
||||
t := time.Now()
|
||||
cms.SyncTiktokMainIdToLocal(jxcontext.AdminCtx, &tiktok_store.MainSku{
|
||||
AppOrgCode: "",
|
||||
CheckStatus: 3,
|
||||
StartTime: time.Date(t.Year(), t.Month(), t.Day()-1, 0, 0, 1, 0, time.Local).Unix(),
|
||||
EndTime: time.Date(t.Year(), t.Month(), t.Day()-1, 23, 59, 59, 0, time.Local).Unix(),
|
||||
Page: 1,
|
||||
PageSize: 100,
|
||||
})
|
||||
}, []string{
|
||||
"04:30:00",
|
||||
})
|
||||
//ScheduleTimerFunc("RefreshStoreOperator", func() {
|
||||
// t := time.Now()
|
||||
// cms.SyncTiktokMainIdToLocal(jxcontext.AdminCtx, &tiktok_store.MainSku{
|
||||
// AppOrgCode: "",
|
||||
// CheckStatus: 3,
|
||||
// StartTime: time.Date(t.Year(), t.Month(), t.Day()-1, 0, 0, 1, 0, time.Local).Unix(),
|
||||
// EndTime: time.Date(t.Year(), t.Month(), t.Day()-1, 23, 59, 59, 0, time.Local).Unix(),
|
||||
// Page: 1,
|
||||
// PageSize: 100,
|
||||
// })
|
||||
//}, []string{
|
||||
// "04:30:00",
|
||||
//})
|
||||
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
defsch.FixedScheduler.ConfirmSelfTakeOrders(jxcontext.AdminCtx, []int{model.VendorIDJD}, time.Now().Add(-48*time.Hour), time.Now().Add(-30*time.Minute), true, true)
|
||||
|
||||
Reference in New Issue
Block a user