1
This commit is contained in:
@@ -182,18 +182,18 @@ func Init() {
|
||||
delivery.GetOrderRiderInfoToPlatform("", 0)
|
||||
}, 10*time.Second, 4*time.Minute)
|
||||
|
||||
//每天晚上23:00更新抖店 审核状态(收费注释)
|
||||
//ScheduleTimerFunc("UpdateStorePoiStatus", func() {
|
||||
// cms.UpdateStorePoiStatus(jxcontext.AdminCtx)
|
||||
//}, []string{
|
||||
// "22:00:00",
|
||||
//})
|
||||
//每天晚上23:00获取门店 电子围栏、仓库、限售模板、运费模板ID同步进数据库(收费注释)
|
||||
//ScheduleTimerFunc("UpdateStoreRelInformation", func() {
|
||||
// cms.UpdateStoreRelInformation(jxcontext.AdminCtx)
|
||||
//}, []string{
|
||||
// "22:00:00",
|
||||
//})
|
||||
//每天晚上23:00更新抖店 审核状态
|
||||
ScheduleTimerFunc("UpdateStorePoiStatus", func() {
|
||||
cms.UpdateStorePoiStatus(jxcontext.AdminCtx)
|
||||
}, []string{
|
||||
"22:00:00",
|
||||
})
|
||||
//每天晚上23:00获取门店 电子围栏、仓库、限售模板、运费模板ID同步进数据库
|
||||
ScheduleTimerFunc("UpdateStoreRelInformation", func() {
|
||||
cms.UpdateStoreRelInformation(jxcontext.AdminCtx)
|
||||
}, []string{
|
||||
"22:00:00",
|
||||
})
|
||||
// 更新抖店订单的结算信息
|
||||
ScheduleTimerFunc("UpdateTiktokShopTotalMoney", func() {
|
||||
orderman.UpdateTiktokShopTotalMoney()
|
||||
@@ -255,16 +255,16 @@ func Init() {
|
||||
|
||||
// 抖音更新门店商品 ,接口收费暂不使用
|
||||
if beego.BConfig.RunMode != "jxgy" {
|
||||
//ScheduleTimerFunc("RefreshSyncSkuList", func() {
|
||||
// syncStoreSkuTiktok()
|
||||
//}, []string{"13:00:00"})
|
||||
ScheduleTimerFunc("RefreshSyncSkuList", func() {
|
||||
syncStoreSkuTiktok()
|
||||
}, []string{"13:00:00"})
|
||||
}
|
||||
|
||||
//刷新抖音门店token
|
||||
if beego.BConfig.RunMode != "jxgy" {
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
cms.RefreshTiktokShopToken(jxcontext.AdminCtx)
|
||||
}, 60*time.Second, 60*time.Minute)
|
||||
}, 60*time.Second, 30*time.Minute)
|
||||
}
|
||||
|
||||
// 定时任务刷新当前订单的物流信息
|
||||
|
||||
Reference in New Issue
Block a user