1
This commit is contained in:
@@ -426,6 +426,7 @@ func updateStoreSku(db *dao.DaoDB, vendorID int, storeSkuList []*dao.StoreSkuSyn
|
|||||||
} else {
|
} else {
|
||||||
updateItemList := make([]*dao.KVUpdateItem, len(storeSkuList))
|
updateItemList := make([]*dao.KVUpdateItem, len(storeSkuList))
|
||||||
for k, v := range storeSkuList {
|
for k, v := range storeSkuList {
|
||||||
|
globals.SugarLogger.Debugf("======skusyncStatus %s", utils.Format4Output(v, false))
|
||||||
updateItemList[k] = sku2Update(vendorID, v, syncStatus)
|
updateItemList[k] = sku2Update(vendorID, v, syncStatus)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
|
globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
|
||||||
@@ -435,7 +436,6 @@ func updateStoreSku(db *dao.DaoDB, vendorID int, storeSkuList []*dao.StoreSkuSyn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("=========updateItemList===num-- %d,%s", num, err.Error())
|
|
||||||
return num, err
|
return num, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,6 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg
|
|||||||
if len(failedList) > 0 {
|
if len(failedList) > 0 {
|
||||||
return failedList, err
|
return failedList, err
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("====SkuId:= %d,ProductId := %d ", tiktokSkuId, utils.Str2Int64(v.VendorMainId))
|
|
||||||
price := &sku_editPrice_request.SkuEditPriceParam{
|
price := &sku_editPrice_request.SkuEditPriceParam{
|
||||||
Price: v.VendorPrice,
|
Price: v.VendorPrice,
|
||||||
SkuId: tiktokSkuId,
|
SkuId: tiktokSkuId,
|
||||||
|
|||||||
@@ -598,7 +598,6 @@ func getProductSkuId4UpdateStock(api *tiktokShop.API, skuInfo *partner.StoreSkuI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
globals.SugarLogger.Debugf("=GetSkuDetail By childrenSku %s", utils.Format4Output(childrenSku, false))
|
|
||||||
for _, v := range childrenSku.SpecPrices {
|
for _, v := range childrenSku.SpecPrices {
|
||||||
tiktokSkuId = v.SkuId
|
tiktokSkuId = v.SkuId
|
||||||
skuInfo.VendorSonSkuID = utils.Int64ToStr(v.SkuId)
|
skuInfo.VendorSonSkuID = utils.Int64ToStr(v.SkuId)
|
||||||
|
|||||||
Reference in New Issue
Block a user