1
This commit is contained in:
@@ -250,9 +250,9 @@ func Init() {
|
||||
}, 60*time.Second, 30*time.Minute)
|
||||
|
||||
// 抖音更新门店商品
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
syncStoreSkuTiktok()
|
||||
}, 60*time.Second, 1*time.Minute)
|
||||
//ScheduleTimerFuncByInterval(func() {
|
||||
// syncStoreSkuTiktok()
|
||||
//}, 60*time.Second, 1*time.Minute)
|
||||
|
||||
// 定时任务刷新当前订单的物流信息
|
||||
ScheduleTimerFunc("RefreshMaterialLogistics", func() {
|
||||
|
||||
@@ -303,7 +303,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
updateParam.ProductId = utils.Str2Int64(storeSku.VendorMainId)
|
||||
updateParam.MainProductId = utils.Str2Int64(storeSku.VendorMainId)
|
||||
updateParam.SpecPrices = param.SpecPrices
|
||||
updateParam.ProductId = utils.Str2Int64(storeSku.VendorSkuID)
|
||||
updateParam.StoreId = utils.Str2Int64(vendorStoreID)
|
||||
if err := api.EditStoreCommodity(updateParam); err != nil {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||
@@ -398,13 +397,13 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
param.ProductId = utils.Str2Int64(storeSku.VendorMainId)
|
||||
param.MainProductId = utils.Str2Int64(storeSku.VendorMainId)
|
||||
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, param.MainProductId, storeSku)
|
||||
param.ProductId = utils.Str2Int64(storeSku.VendorSkuID)
|
||||
param.StoreId = utils.Str2Int64(vendorStoreID)
|
||||
if err := api.EditStoreCommodity(param); err != nil {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||
storeSku.VendorSkuID = utils.Int2Str(storeSku.SkuID)
|
||||
continue
|
||||
}
|
||||
storeSku.StoreSkuStatus = 57 // 品库修改 售卖状态待同步 价格待同步
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user