IP库增加制品管理/统计中相关区域名称可以显示别名

This commit is contained in:
刘祥超
2022-08-23 19:40:17 +08:00
parent 455952e9e4
commit c552eb3b0e
16 changed files with 479 additions and 18 deletions

View File

@@ -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)