From 06f3bda101a48dc1f5f3efb94aee285d5c261821 Mon Sep 17 00:00:00 2001 From: Betta_Fish Date: Sat, 24 Feb 2024 08:58:11 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E5=90=8C=E5=90=8D=E5=9C=B0=E5=8C=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=20Fix=20#35?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FluentWeather.Uwp/Helpers/CacheHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {