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; } }