1
This commit is contained in:
@@ -1744,7 +1744,6 @@ func UpdateStoresSkus(ctx *jxcontext.Context, causeFlag int, storeIDs []int, sku
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flag, _ := doStoreSkuAudit(ctx, storeIDs, skuBindInfos)
|
flag, _ := doStoreSkuAudit(ctx, storeIDs, skuBindInfos)
|
||||||
globals.SugarLogger.Debugf("========falg := %s", utils.Format4Output(flag, false))
|
|
||||||
if !flag {
|
if !flag {
|
||||||
var num int64
|
var num int64
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
|
|||||||
@@ -274,11 +274,11 @@ func Init() {
|
|||||||
}, 5*time.Second, 10*time.Minute)
|
}, 5*time.Second, 10*time.Minute)
|
||||||
|
|
||||||
// 抖音更新门店商品 ,接口收费暂不使用
|
// 抖音更新门店商品 ,接口收费暂不使用
|
||||||
if beego.BConfig.RunMode != "jxgy" {
|
//if beego.BConfig.RunMode != "jxgy" {
|
||||||
ScheduleTimerFunc("RefreshSyncSkuList", func() {
|
// ScheduleTimerFunc("RefreshSyncSkuList", func() {
|
||||||
syncStoreSkuTiktok()
|
// syncStoreSkuTiktok()
|
||||||
}, []string{"13:00:00"})
|
// }, []string{"13:00:00"})
|
||||||
}
|
//}
|
||||||
// 淘鲜达更新门店商品 ,接口收费暂不使用
|
// 淘鲜达更新门店商品 ,接口收费暂不使用
|
||||||
if beego.BConfig.RunMode != "jxgy" {
|
if beego.BConfig.RunMode != "jxgy" {
|
||||||
ScheduleTimerFunc("RefreshSyncSkuListTao", func() {
|
ScheduleTimerFunc("RefreshSyncSkuListTao", func() {
|
||||||
@@ -515,11 +515,11 @@ func Init() {
|
|||||||
100123,
|
100123,
|
||||||
100115,
|
100115,
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("==================================1")
|
||||||
syncStoreSkuTao(hangzhou)
|
syncStoreSkuTao(hangzhou)
|
||||||
}, []string{
|
}, []string{
|
||||||
"11:30:00",
|
"11:30:00",
|
||||||
"13:30:00",
|
"13:30:00",
|
||||||
"17:38:00",
|
|
||||||
"17:30:00",
|
"17:30:00",
|
||||||
"19:30:00",
|
"19:30:00",
|
||||||
"21:30:00",
|
"21:30:00",
|
||||||
@@ -888,6 +888,7 @@ var syncLen = 0
|
|||||||
// syncStoreSkuTao 同步商品到淘鲜达
|
// syncStoreSkuTao 同步商品到淘鲜达
|
||||||
func syncStoreSkuTao(beijin []int) {
|
func syncStoreSkuTao(beijin []int) {
|
||||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", "开始了:"+utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", "开始了:"+utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
||||||
|
globals.SugarLogger.Debugf("==================================2")
|
||||||
syncFlag := 0
|
syncFlag := 0
|
||||||
task := tasksch.NewParallelTask("同步京西商品到淘鲜达平台,方案二使用", nil, jxcontext.AdminCtx,
|
task := tasksch.NewParallelTask("同步京西商品到淘鲜达平台,方案二使用", nil, jxcontext.AdminCtx,
|
||||||
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||||
@@ -897,6 +898,7 @@ func syncStoreSkuTao(beijin []int) {
|
|||||||
switch step {
|
switch step {
|
||||||
case 0:
|
case 0:
|
||||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
||||||
|
globals.SugarLogger.Debugf("==================================1 := %s", utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
||||||
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
|
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
|
||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user