This commit is contained in:
邹宗楠
2022-10-19 16:05:55 +08:00
parent ac287d0d95
commit 6a323aea9a
5 changed files with 42 additions and 40 deletions

View File

@@ -306,12 +306,12 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
// spec_prices
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, 0, storeSku)
// ProductFormatNew 获取商品属性
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
globals.SugarLogger.Debugf("er=====productFormatNew=========%s", productFormatNew)
if err != nil {
return nil, err
}
param.ProductFormatNew = productFormatNew
//productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
//globals.SugarLogger.Debugf("er=====productFormatNew=========%s", productFormatNew)
//if err != nil {
// return nil, err
//}
//param.ProductFormatNew = productFormatNew
// 获取品牌
param.StandardBrandId, err = api.GetSkuBrand(param.CategoryLeafId)
@@ -431,11 +431,11 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
// spec_prices
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, utils.Str2Int64(storeSku.VendorSkuID), storeSku)
// ProductFormatNew 获取商品属性
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
if err != nil {
return nil, err
}
param.ProductFormatNew = productFormatNew
//productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
//if err != nil {
// return nil, err
//}
//param.ProductFormatNew = productFormatNew
// 获取品牌
//brandID, err := api.GetSkuBrand(param.CategoryLeafId)