Browse Source

采购sku标题过滤

yijia
shanji 2 years ago
parent
commit
341c986525
  1. 5
      BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs

5
BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs

@ -100,14 +100,13 @@ namespace BBWYB.Server.Business
//errorMsg = $"商品{purchaseSchemeProduct.PurchaseProductId}缺少sku信息";
return null;
}
var list = skuJArray.Select(j => new PurchaseSkuItemBasicInfoResponse()
{
PurchaseProductId = request.PurchaseProductId,
Price = j.Value<decimal>("price"),
PurchaseSkuId = j.Value<string>("sku_id"),
PurchaseSkuSpecId = j.Value<string>("spec_id"),
Title = j.Value<string>("properties_name"),
Title = Regex.Replace(j.Value<string>("properties_name"), @"\d:\d:.{2,5}:", string.Empty),
Logo = GetOneBoundSkuLogo(j, (JArray)jobject["item"]["prop_imgs"]["prop_img"])
}).ToList();
@ -235,7 +234,7 @@ namespace BBWYB.Server.Business
{
PurchaseProductId = request.PurchaseProductId,
Price = skuPrice == 0M ? firstPrice : skuPrice,
Title = name,
Title = name.Replace("&gt", string.Empty),
PurchaseSkuId = value.Value<string>("skuId"),
PurchaseSkuSpecId = value.Value<string>("specId"),
Logo = colorsProperty.FirstOrDefault(c => c.name == matchName)?.imageUrl ?? "pack://application:,,,/Resources/Images/defaultItem.png"

Loading…
Cancel
Save