optimize
wet 2 years ago
parent 6d1a0189b2
commit b68c24897e

@ -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($"{msg}");
}
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($"{msg}");
}
JObject item = array[0] as JObject;

Loading…
Cancel
Save