Skip to content

Commit 3e78d8a

Browse files
committed
fix: 修复部分街道数据遗漏的编码位数处理(9位)
1 parent 73a7783 commit 3e78d8a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/pca-code.json

+1-1
Large diffs are not rendered by default.

dist/pcas-code.json

+1-1
Large diffs are not rendered by default.

dist/streets.json

+1-1
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "china-division",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "中华人民共和国行政区划:省份、城市、区县、乡镇(街道)",
55
"main": "scripts/exp.js",
66
"scripts": {

scripts/get.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function handleSpecialCities (callback) {
229229

230230
for (const k in data) {
231231
streets.push({
232-
code: k,
232+
code: k.substr(0, 9),
233233
name: data[k],
234234
parent_code: k.substr(0, 6)
235235
})

0 commit comments

Comments
 (0)