From 929badee106aa9b94d7332eaeb934ea2cf86b0ee Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Fri, 6 Jan 2023 14:02:43 +0800 Subject: [PATCH] =?UTF-8?q?spu=E6=9F=A5=E8=AF=A2=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=93=81=E7=89=8C=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 5 +++-- .../Dto/Response/Product/ProductResponse.cs | 11 ++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index f57bda97..0584dc6e 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -86,7 +86,7 @@ namespace BBWY.Server.Business orderType = "desc", pageSize = searchProductRequest.PageSize, pageNo = searchProductRequest.PageIndex, - field = "created,logo" + field = "created,logo,brandName" }; if (!string.IsNullOrEmpty(searchProductRequest.Spu)) req_productList.wareId = searchProductRequest.Spu; @@ -111,7 +111,8 @@ namespace BBWY.Server.Business ProductItemNum = p.Value("itemNum"), State = p.Value("wareStatus"), CreateTime = p.Value("created").StampToDateTime(), - Logo = $"https://img13.360buyimg.com/n9/s100x100_{p.Value("logo")}" + Logo = $"https://img13.360buyimg.com/n9/s100x100_{p.Value("logo")}", + BrandName = p.Value("brandName") }).ToList() }; } diff --git a/BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs b/BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs index aa181f26..610b60d5 100644 --- a/BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs +++ b/BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs @@ -30,13 +30,18 @@ namespace BBWY.Server.Model.Dto public DateTime? CreateTime { get; set; } public string Logo { get; set; } + + /// + /// 商品品牌名称 + /// + public string BrandName { get; set; } } public class ProductListResponse - { + { public int Count { get; set; } - public IList Items { get; set;} + public IList Items { get; set; } } public class ProductSkuResponse @@ -65,7 +70,7 @@ namespace BBWY.Server.Model.Dto } public class SimpleProductSkuResponse - { + { public string Id { get; set; } public string Logo { get; set; } }