mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-25 06:26:35 +08:00
IP库增加制品管理/统计中相关区域名称可以显示别名
This commit is contained in:
@@ -32,7 +32,7 @@ func (this *ServerRegionCountryMonthlyStatService) FindTopServerRegionCountryMon
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
pbStats := []*pb.FindTopServerRegionCountryMonthlyStatsResponse_Stat{}
|
||||
var pbStats = []*pb.FindTopServerRegionCountryMonthlyStatsResponse_Stat{}
|
||||
for _, stat := range statList {
|
||||
pbStat := &pb.FindTopServerRegionCountryMonthlyStatsResponse_Stat{
|
||||
Count: int64(stat.Count),
|
||||
@@ -47,7 +47,7 @@ func (this *ServerRegionCountryMonthlyStatService) FindTopServerRegionCountryMon
|
||||
}
|
||||
pbStat.RegionCountry = &pb.RegionCountry{
|
||||
Id: int64(country.Id),
|
||||
Name: country.Name,
|
||||
Name: country.DisplayName(),
|
||||
}
|
||||
|
||||
pbStats = append(pbStats, pbStat)
|
||||
|
||||
Reference in New Issue
Block a user