mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-27 12:56:35 +08:00
相关区域名称可以显示别名
This commit is contained in:
@@ -32,7 +32,7 @@ func (this *SelectCountriesPopupAction) RunGet(params struct {
|
||||
for _, country := range countriesResp.RegionCountries {
|
||||
countryMaps = append(countryMaps, maps.Map{
|
||||
"id": country.Id,
|
||||
"name": country.Name,
|
||||
"name": country.DisplayName,
|
||||
"letter": strings.ToUpper(string(country.Pinyin[0][0])),
|
||||
"isChecked": lists.ContainsInt64(selectedCountryIds, country.Id),
|
||||
})
|
||||
@@ -61,7 +61,7 @@ func (this *SelectCountriesPopupAction) RunPost(params struct {
|
||||
}
|
||||
countryMaps = append(countryMaps, maps.Map{
|
||||
"id": country.Id,
|
||||
"name": country.Name,
|
||||
"name": country.DisplayName,
|
||||
})
|
||||
}
|
||||
this.Data["countries"] = countryMaps
|
||||
|
||||
Reference in New Issue
Block a user