Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Apr 30, 2022
1 parent 6e49d6b commit 785f3e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/address_code_timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ var addressCodeTimelineProvincePluck = map[uint8]func() map[uint32][]map[string]
}

func GetAddressCodeTimeline(code uint32) []map[string]string {
if code < 110000 || code > 830000 {
return []map[string]string{}
}

f := addressCodeTimelineProvincePluck[uint8(math.Floor(float64(code)/10000))]
if f == nil {
return []map[string]string{}
Expand Down
2 changes: 1 addition & 1 deletion id_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func FakeId() string {
// sex 性别:1为男性,0为女性
func FakeRequireId(isEighteen bool, address string, birthday string, sex int) string {
// 生成地址码
var addressCode string
addressCode := ""
if address == "" {
for i, s := range data.AddressCode() {
addressCode = cast.ToString(i)
Expand Down

0 comments on commit 785f3e4

Please sign in to comment.