dev add field locale for get info for view doc
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-14 13:01:40 +07:00
parent 5dc3bb7157
commit 59e9de2684
3 changed files with 7 additions and 6 deletions
@@ -45,7 +45,7 @@ public class GeoCountryService {
}
}
public Map<String, Integer> getUniqueGeoCount(List<String> ipList) {
public Map<String, Integer> getUniqueGeoCount(List<String> ipList, String locale) {
Set<String> uniqueCountries = new HashSet<>();
Set<String> uniqueCountryCodes = new HashSet<>();
Set<String> uniqueCities = new HashSet<>();
@@ -53,7 +53,7 @@ public class GeoCountryService {
if (ipList != null) {
for (String ip : ipList) {
try {
String country = getCountryByIp(ip);
String country = getCountryByIp(ip, locale);
if (!"UNKNOWN".equals(country)) {
uniqueCountries.add(country);
}
@@ -63,7 +63,7 @@ public class GeoCountryService {
uniqueCountryCodes.add(countryCode);
}
String city = getCityByIp(ip);
String city = getCityByIp(ip, locale);
if (!"UNKNOWN".equals(city)) {
uniqueCities.add(city);
}