From f511f4ba21daf54826bee75043f2bae26c1826c3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 1 Aug 2020 09:43:22 +0800 Subject: [PATCH] Upgrade 2020-07-28 data. --- README.md | 4 ++-- script/utils.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5daf3576..99890bec 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ 来自中华人民共和国民政部,用于查询中国省,市和区数据的网站。 -> ⚠️ 2020-03-30 新增一个街道,街道数据暂未更新。 +> ⚠️ 2020-07-28县以上行政区划代码为发生变化,县以下区划发生变更(等待更新)。 -- [中华人民共和国行政区划代码,更新时间:2020-03-30](http://www.mca.gov.cn/article/sj/xzqh/2020/) +- [中华人民共和国行政区划代码,更新时间:2020-07-28](http://www.mca.gov.cn/article/sj/xzqh/2020/) - [统计用区划和城乡划分代码,更新时间:2020-02-25](http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/) ### 数据更新 Diff diff --git a/script/utils.js b/script/utils.js index d0fb2b54..5fc8ec26 100644 --- a/script/utils.js +++ b/script/utils.js @@ -48,7 +48,7 @@ exports.getProvinceCity = () => { return new Promise(async (resolve, reject) => { try { console.log('=> 获取省市区数据') - const res = await request.get('http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003301019.html'); + const res = await request.get('http://www.mca.gov.cn///article/sj/xzqh/2020/2020/2020072805001.html'); if (!res || !res.text) return resolve([]); const $ = cheerio.load(res.text); const data = [];