From 341c98652529560ed11fc66f85523275b3382bd4 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Mon, 26 Jun 2023 23:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=ADsku=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchaseScheme/PurchaseProductAPIService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs b/BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs index d12e184..9fa4e91 100644 --- a/BBWYB.Server.Business/PurchaseScheme/PurchaseProductAPIService.cs +++ b/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("price"), PurchaseSkuId = j.Value("sku_id"), PurchaseSkuSpecId = j.Value("spec_id"), - Title = j.Value("properties_name"), + Title = Regex.Replace(j.Value("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(">", string.Empty), PurchaseSkuId = value.Value("skuId"), PurchaseSkuSpecId = value.Value("specId"), Logo = colorsProperty.FirstOrDefault(c => c.name == matchName)?.imageUrl ?? "pack://application:,,,/Resources/Images/defaultItem.png"