Commit 204047b2 authored by 黄奎's avatar 黄奎

1

parent 16c26e4e
...@@ -1663,15 +1663,22 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -1663,15 +1663,22 @@ namespace Mall.WebApi.Controllers.MallBase
if (configModel.Type == 1) if (configModel.Type == 1)
{ {
string alimsg = orderModule.GetOrderExpressInfoForAliyun(ExpressNumber, model.ExpressCode, configModel.AppCode, configModel.RquUrl); string alimsg = orderModule.GetOrderExpressInfoForAliyun(ExpressNumber, model.ExpressCode, configModel.AppCode, configModel.RquUrl);
JObject Rparms = JObject.Parse(alimsg); if (!string.IsNullOrEmpty(alimsg))
if (Rparms.GetStringValue("Success").ToLower() == "true")
{ {
List<Model.Query.ExpressTraces> list = JsonConvert.DeserializeObject<List<Model.Query.ExpressTraces>>(Rparms.GetStringValue("Traces")); JObject Rparms = JObject.Parse(alimsg);
if (list.Any()) if (Rparms.GetStringValue("Success").ToLower() == "true")
{ {
list = list.OrderByDescending(x => x.AcceptTime).ToList(); List<Model.Query.ExpressTraces> list = JsonConvert.DeserializeObject<List<Model.Query.ExpressTraces>>(Rparms.GetStringValue("Traces"));
if (list.Any())
{
list = list.OrderByDescending(x => x.AcceptTime).ToList();
}
return ApiResult.Success("", list);
}
else
{
return ApiResult.Failed("未能查询到该快递信息");
} }
return ApiResult.Success("", list);
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment