Skip to content

Commit 277e868

Browse files
committed
Fix style
2 parents 4474806 + 840a2da commit 277e868

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to `guanguans/id-validator` will be documented in this file
44

5+
## v1.1.11 - 2022-04-29
6+
7+
## What's Changed
8+
9+
- Bump actions/cache from 2.1.7 to 3 by @dependabot in https://github.com/guanguans/id-validator/pull/21
10+
- Bump codecov/codecov-action from 2.1.0 to 3 by @dependabot in https://github.com/guanguans/id-validator/pull/22
11+
12+
**Full Changelog**: https://github.com/guanguans/id-validator/compare/v1.1.10...v1.1.11
13+
514
## v1.1.10 - 2022-03-06
615

716
**Full Changelog**: https://github.com/guanguans/id-validator/compare/v1.1.9...v1.1.10

data/address_code_timeline.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ func GetAddressCodeTimeline(code int) ([]map[string]string, bool) {
5959

6060
f, ok := provinceAddressCodeTimelinePluck[codeStr[:2]]
6161
if !ok {
62-
timeline, ok := getAddressCodeTimelineOther()[code]
62+
timeline, ok := getAddressCodeTimelineAdditional()[code]
6363
return timeline, ok
6464
}
6565

6666
timeline, ok := f()[code]
6767
if !ok {
68-
timeline, ok := getAddressCodeTimelineOther()[code]
68+
timeline, ok := getAddressCodeTimelineAdditional()[code]
6969
return timeline, ok
7070
}
7171

@@ -51993,7 +51993,7 @@ func getAddressCodeTimelineTaiWan() map[int][]map[string]string {
5199351993
}
5199451994
}
5199551995

51996-
func getAddressCodeTimelineOther() map[int][]map[string]string {
51996+
func getAddressCodeTimelineAdditional() map[int][]map[string]string {
5199751997
return map[int][]map[string]string{
5199851998
// 行政区划代码(地址码)补充数据
5199951999
110100: {

generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ func generatorBirthdayCode(addressCode string, address string, birthday string)
116116
month := datePipeHandle(datePad(substr(birthday, 4, 6), "month"), "month")
117117
day := datePipeHandle(datePad(substr(birthday, 6, 8), "day"), "day")
118118

119-
if timeLine, ok := data.GetAddressCodeTimeline(cast.ToInt(addressCode)); ok {
120-
for _, val := range timeLine {
119+
if timeline, ok := data.GetAddressCodeTimeline(cast.ToInt(addressCode)); ok {
120+
for _, val := range timeline {
121121
if val["address"] == address {
122122
if val["start_year"] != "" {
123123
startYear = val["start_year"]

0 commit comments

Comments
 (0)