优化代码

This commit is contained in:
GoEdgeLab
2022-01-06 11:13:36 +08:00
parent c3104f88ce
commit 62a327befd
13 changed files with 52 additions and 20 deletions

View File

@@ -47,7 +47,7 @@ func (this *IndexAction) RunGet(params struct {
return
}
countryMaps := []maps.Map{}
for _, country := range countriesResp.Countries {
for _, country := range countriesResp.RegionCountries {
countryMaps = append(countryMaps, maps.Map{
"id": country.Id,
"name": country.Name,