Browse Source

spu查询新增品牌名称

qianyi
shanji 2 years ago
parent
commit
929badee10
  1. 5
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs
  2. 5
      BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs

5
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<string>("itemNum"),
State = p.Value<int>("wareStatus"),
CreateTime = p.Value<long>("created").StampToDateTime(),
Logo = $"https://img13.360buyimg.com/n9/s100x100_{p.Value<string>("logo")}"
Logo = $"https://img13.360buyimg.com/n9/s100x100_{p.Value<string>("logo")}",
BrandName = p.Value<string>("brandName")
}).ToList()
};
}

5
BBWY.Server.Model/Dto/Response/Product/ProductResponse.cs

@ -30,6 +30,11 @@ namespace BBWY.Server.Model.Dto
public DateTime? CreateTime { get; set; }
public string Logo { get; set; }
/// <summary>
/// 商品品牌名称
/// </summary>
public string BrandName { get; set; }
}
public class ProductListResponse

Loading…
Cancel
Save