|
@ -80,7 +80,7 @@ namespace BBWY.Server.Business |
|
|
var jdClient = GetJdClient(searchProductRequest.AppKey, searchProductRequest.AppSecret); |
|
|
var jdClient = GetJdClient(searchProductRequest.AppKey, searchProductRequest.AppSecret); |
|
|
var req_productList = new WareReadSearchWare4ValidRequest() |
|
|
var req_productList = new WareReadSearchWare4ValidRequest() |
|
|
{ |
|
|
{ |
|
|
orderField = "modified", |
|
|
orderField = "modified,wareStatus", |
|
|
orderType = "desc", |
|
|
orderType = "desc", |
|
|
pageSize = searchProductRequest.PageSize, |
|
|
pageSize = searchProductRequest.PageSize, |
|
|
pageNo = searchProductRequest.PageIndex |
|
|
pageNo = searchProductRequest.PageIndex |
|
@ -105,7 +105,8 @@ namespace BBWY.Server.Business |
|
|
{ |
|
|
{ |
|
|
Id = p.Value<string>("wareId"), |
|
|
Id = p.Value<string>("wareId"), |
|
|
Title = p.Value<string>("title"), |
|
|
Title = p.Value<string>("title"), |
|
|
ProductItemNum = p.Value<string>("itemNum") |
|
|
ProductItemNum = p.Value<string>("itemNum"), |
|
|
|
|
|
State = p.Value<int>("wareStatus") |
|
|
}).ToList() |
|
|
}).ToList() |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
@ -116,7 +117,7 @@ namespace BBWY.Server.Business |
|
|
var req_skuList = new SkuReadSearchSkuListRequest() |
|
|
var req_skuList = new SkuReadSearchSkuListRequest() |
|
|
{ |
|
|
{ |
|
|
pageSize = 50,//50
|
|
|
pageSize = 50,//50
|
|
|
field = "logo,saleAttrs" |
|
|
field = "logo,saleAttrs,status" |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(searchProductSkuRequest.Spu)) |
|
|
if (!string.IsNullOrEmpty(searchProductSkuRequest.Spu)) |
|
@ -133,7 +134,8 @@ namespace BBWY.Server.Business |
|
|
ProductId = s.Value<string>("wareId"), |
|
|
ProductId = s.Value<string>("wareId"), |
|
|
Price = s.Value<decimal>("jdPrice"), |
|
|
Price = s.Value<decimal>("jdPrice"), |
|
|
Title = string.Join("-", s["saleAttrs"].Select(a => a["attrValueAlias"][0].ToString())), |
|
|
Title = string.Join("-", s["saleAttrs"].Select(a => a["attrValueAlias"][0].ToString())), |
|
|
Logo = $"https://img13.360buyimg.com/n9/s80x80_{s.Value<string>("logo")}" |
|
|
Logo = $"https://img13.360buyimg.com/n9/s80x80_{s.Value<string>("logo")}", |
|
|
|
|
|
State = s.Value<int>("status") |
|
|
}).ToList(); |
|
|
}).ToList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|