This commit is contained in:
邹宗楠
2022-12-21 15:07:24 +08:00
parent 2a97c44356
commit fe1090e7ec

View File

@@ -300,7 +300,7 @@ 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.StoreId = utils.Str2Int64(vendorStoreID)
//updateParam.StoreId = utils.Str2Int64(vendorStoreID)
if err := api.EditStoreCommodity(updateParam); err != nil {
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
storeSku.VendorSkuID = utils.Int2Str(storeSku.SkuID)
@@ -405,10 +405,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
// 修改商品
param.ProductId = 1752694442617903
param.ProductId = mainIdInt
param.MainProductId = mainIdInt
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, param.MainProductId, storeSku)
param.StoreId = utils.Str2Int64(vendorStoreID)
//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)