Change IpGeolocationService to english

This commit is contained in:
linmeideli committed 2026-09-25 10:04:44 +08:00
1 parent 1d7252aa36
commit 8767bcbd4d
1 file changed
+1 -1
@@ -11,7 +11,7 @@ namespace Empostor.Server.Service.Shared
{
public class IpGeolocationService
{
private const string ApiUrl = "http://ip-api.com/json/{0}?lang=zh-CN&fields=status,country,regionName,city";
private const string ApiUrl = "http://ip-api.com/json/{0}?lang=en&fields=status,country,regionName,city";
private static readonly TimeSpan CacheTtl = TimeSpan.FromHours(24);
private readonly ConcurrentDictionary<IPAddress, (string Location, DateTime Expiry)> _cache = new();