Skip to content

Commit

Permalink
Upgrade 2020-07-28 data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 1, 2020
1 parent 0ed16fa commit f511f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit f511f4b

Please sign in to comment.