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