diff --git a/src/MaaWpfGui/Services/Web/MaaApiService.cs b/src/MaaWpfGui/Services/Web/MaaApiService.cs index 15328b20e3..3d7918a802 100644 --- a/src/MaaWpfGui/Services/Web/MaaApiService.cs +++ b/src/MaaWpfGui/Services/Web/MaaApiService.cs @@ -45,7 +45,7 @@ public class MaaApiService : IMaaApiService private async Task TryRequest(string api, string baseUrl, bool allowFallbackToCache = true) { var url = baseUrl + api; - var cache = CacheDir + api; + var cache = Path.Combine(CacheDir, api); var response = await ETagCache.FetchResponseWithEtag(url, !File.Exists(cache)); if (response == null)