JCQ 2022/04/06 暂时注释 打开后会执行每10s处理一次消息 xuhang

This commit is contained in:
807875765@qq.com
2022-04-06 16:08:41 +08:00
parent f8312c5656
commit 39be1d9d9e
6 changed files with 326 additions and 20 deletions

View File

@@ -341,6 +341,15 @@ func Init() {
act.RrefreshEbaiVendorAct(jxcontext.AdminCtx)
}, dailyWorkTimeList2)
}
//update xuhang 2022/04/06用于同步京东数据以取代爬取订单 但由于京东的v2API已不支持手机号 因此以下代码暂时注释 后续接入虚拟号可再次open
/* ScheduleTimerFuncByInterval(func() {
jdshop.InitKey()
}, 10*time.Second, 8*time.Hour)*/
//此处需要新增一个message 存储操作 服务器启动的30s后开始执行 每10s刷新一次
//进行一个JCQ队列定时任务执行
/* ScheduleTimerFuncByInterval(func() {
jcq.JCQSchedule()
}, 10*time.Second, 10*time.Second)*/
ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
}, autoSaleStoreSkuTimeList)