Archived
优化代码
This commit is contained in:
@@ -10,7 +10,7 @@ func (this *RegionCity) DecodeCodes() []string {
|
||||
return []string{}
|
||||
}
|
||||
result := []string{}
|
||||
err := json.Unmarshal([]byte(this.Codes), &result)
|
||||
err := json.Unmarshal(this.Codes, &result)
|
||||
if err != nil {
|
||||
logs.Error(err)
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ func (this *RegionCountry) DecodeCodes() []string {
|
||||
return []string{}
|
||||
}
|
||||
result := []string{}
|
||||
err := json.Unmarshal([]byte(this.Codes), &result)
|
||||
err := json.Unmarshal(this.Codes, &result)
|
||||
if err != nil {
|
||||
logs.Error(err)
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ func (this *RegionProvider) DecodeCodes() []string {
|
||||
return []string{}
|
||||
}
|
||||
result := []string{}
|
||||
err := json.Unmarshal([]byte(this.Codes), &result)
|
||||
err := json.Unmarshal(this.Codes, &result)
|
||||
if err != nil {
|
||||
logs.Error(err)
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ func (this *RegionProvince) DecodeCodes() []string {
|
||||
return []string{}
|
||||
}
|
||||
result := []string{}
|
||||
err := json.Unmarshal([]byte(this.Codes), &result)
|
||||
err := json.Unmarshal(this.Codes, &result)
|
||||
if err != nil {
|
||||
logs.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user