optimize
wet 2 years ago
parent 77894a46ac
commit 7c106ba0ea

@ -6144,14 +6144,14 @@ namespace Myshipping.Application
}
JArray jarrData = jobjRtn.GetValue("data") as JArray;
if (jarrData==null|| jarrData.Count==0) {
throw Oops.Bah($"请求爬虫获取数据为空{rtn}");
throw Oops.Bah($"单号信息不存在");
}
JObject it = jarrData[0] as JObject;
JArray array = it.GetValue("data") as JArray;
if (array == null || array.Count == 0)
{
throw Oops.Bah($"请求爬虫获取数据为空{rtn}");
throw Oops.Bah($"单号信息不存在");
}
JObject item = array[0] as JObject;

Loading…
Cancel
Save