|
|
@ -402,5 +402,36 @@ namespace BBWY.Test |
|
|
|
Console.WriteLine(JsonConvert.SerializeObject(res)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void QuerySPU(IJdClient client,string token) |
|
|
|
{ |
|
|
|
var req_productList = new WareReadSearchWare4ValidRequest() |
|
|
|
{ |
|
|
|
orderField = "modified", |
|
|
|
orderType = "desc", |
|
|
|
pageSize = 50, |
|
|
|
pageNo = 1, |
|
|
|
field = "created,logo" |
|
|
|
}; |
|
|
|
|
|
|
|
req_productList.wareId = "10023015553755"; |
|
|
|
|
|
|
|
var res = client.Execute(req_productList, token, DateTime.Now.ToLocalTime()); |
|
|
|
|
|
|
|
Console.WriteLine(JsonConvert.SerializeObject(res)); |
|
|
|
|
|
|
|
//return new ProductListResponse()
|
|
|
|
//{
|
|
|
|
// Count = rep_productList.page.totalItem,
|
|
|
|
// Items = ((JArray)rep_productList.Json["jingdong_ware_read_searchWare4Valid_responce"]["page"]["data"]).Select(p => new ProductResponse()
|
|
|
|
// {
|
|
|
|
// Id = p.Value<string>("wareId"),
|
|
|
|
// Title = p.Value<string>("title"),
|
|
|
|
// ProductItemNum = p.Value<string>("itemNum"),
|
|
|
|
// State = p.Value<int>("wareStatus"),
|
|
|
|
// CreateTime = p.Value<long>("created").StampToDateTime()
|
|
|
|
// }).ToList()
|
|
|
|
//};
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|