😎优化同步行政区域数据转换速度
This commit is contained in:
parent
14d14db4bb
commit
cc52c599dc
@ -310,9 +310,8 @@ public class SysRegionService : IDynamicApiController, ITransient
|
|||||||
{
|
{
|
||||||
var url = $"https://dmfw.mca.gov.cn/9095/xzqh/getList?code={input.Code}&maxLevel={input.Level}";
|
var url = $"https://dmfw.mca.gov.cn/9095/xzqh/getList?code={input.Code}&maxLevel={input.Level}";
|
||||||
|
|
||||||
var res = await _httpRemoteService.GetAsStringAsync(url);
|
var res = await _httpRemoteService.GetAsStreamAsync(url);
|
||||||
dynamic clay = Clay.Parse(res);
|
SysRegion regionLevel0 = ((dynamic)Clay.Parse(res)).data;
|
||||||
SysRegion regionLevel0 = clay.data;
|
|
||||||
if (regionLevel0 == null) return 0;
|
if (regionLevel0 == null) return 0;
|
||||||
|
|
||||||
var areaList = new List<SysRegion>();
|
var areaList = new List<SysRegion>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user