Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop

This commit is contained in:
richboo111
2022-12-27 15:47:34 +08:00

View File

@@ -421,10 +421,12 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
mainIdInt = utils.Str2Int64(storeSku.VendorMainId)
}
globals.SugarLogger.Debugf("==storeSku := %s", utils.Format4Output(storeSku, false))
// 修改商品
param.ProductId = utils.Str2Int64(storeSku.VendorSkuID)
param.MainProductId = mainIdInt
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, param.MainProductId, storeSku)
globals.SugarLogger.Debugf("==param := %s", utils.Format4Output(param, false))
if err := api.EditStoreCommodity(param); err != nil {
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
storeSku.VendorSkuID = utils.Int2Str(storeSku.SkuID)