mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
国家/地区、省份等相关表增加真实ID字段,防止数据表被用户修改时无法对应
This commit is contained in:
@@ -62,15 +62,15 @@ func (this *ServerRegionCityMonthlyStatService) FindTopServerRegionCityMonthlySt
|
||||
continue
|
||||
}
|
||||
pbStat.RegionCountry = &pb.RegionCountry{
|
||||
Id: int64(country.Id),
|
||||
Id: int64(country.ValueId),
|
||||
Name: country.DisplayName(),
|
||||
}
|
||||
pbStat.RegionProvince = &pb.RegionProvince{
|
||||
Id: int64(province.Id),
|
||||
Id: int64(province.ValueId),
|
||||
Name: province.DisplayName(),
|
||||
}
|
||||
pbStat.RegionCity = &pb.RegionCity{
|
||||
Id: int64(city.Id),
|
||||
Id: int64(city.ValueId),
|
||||
Name: city.DisplayName(),
|
||||
}
|
||||
pbStats = append(pbStats, pbStat)
|
||||
|
||||
Reference in New Issue
Block a user