diff --git a/FluentWeather.Uwp/Helpers/CacheHelper.cs b/FluentWeather.Uwp/Helpers/CacheHelper.cs index 8dd8dcb..c9b655c 100644 --- a/FluentWeather.Uwp/Helpers/CacheHelper.cs +++ b/FluentWeather.Uwp/Helpers/CacheHelper.cs @@ -28,7 +28,7 @@ public static async Task GetWeatherCache(GeolocationBase locat var text = await FileIO.ReadTextAsync(item); var data = JsonSerializer.Deserialize>(text); data.RemoveAll(p => DateTime.Now - p.UpdatedTime > TimeSpan.FromMinutes(10));//删除过期的数据 - return data.Find(p => p.Location.Name == location.Name); + return data.Find(p => p.Location.Name == location.Name&&p.Location.AdmDistrict == location.AdmDistrict); } catch {