From 8b7981b91dd2e8ddc034fad0383131d06e00e52a Mon Sep 17 00:00:00 2001 From: game4353 <73753515+game4353@users.noreply.github.com> Date: Wed, 29 May 2024 20:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8FExcel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCHALE.GameServer/Services/ExcelTableService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCHALE.GameServer/Services/ExcelTableService.cs b/SCHALE.GameServer/Services/ExcelTableService.cs index 0988509..8951b9d 100644 --- a/SCHALE.GameServer/Services/ExcelTableService.cs +++ b/SCHALE.GameServer/Services/ExcelTableService.cs @@ -47,10 +47,10 @@ namespace SCHALE.GameServer.Services string url = GetUrl(); string filePath = "TableBundles/Excel.zip"; string zipPath = Path.Combine(ResourcesFolder!, "download", filePath); + ExcelFolder = zipPath[..^4]; if (File.Exists(zipPath)) return; Directory.CreateDirectory(Path.GetDirectoryName(zipPath)!); - ExcelFolder = zipPath[..^4]; using HttpClient client = new(); HttpResponseMessage response = await client.GetAsync(url + filePath);