🛠️Excel

This commit is contained in:
game4353 2024-05-29 20:23:37 +08:00
parent a9ad62a4c3
commit 8b7981b91d
1 changed files with 1 additions and 1 deletions

View File

@ -47,10 +47,10 @@ namespace SCHALE.GameServer.Services
string url = GetUrl(); string url = GetUrl();
string filePath = "TableBundles/Excel.zip"; string filePath = "TableBundles/Excel.zip";
string zipPath = Path.Combine(ResourcesFolder!, "download", filePath); string zipPath = Path.Combine(ResourcesFolder!, "download", filePath);
ExcelFolder = zipPath[..^4];
if (File.Exists(zipPath)) if (File.Exists(zipPath))
return; return;
Directory.CreateDirectory(Path.GetDirectoryName(zipPath)!); Directory.CreateDirectory(Path.GetDirectoryName(zipPath)!);
ExcelFolder = zipPath[..^4];
using HttpClient client = new(); using HttpClient client = new();
HttpResponseMessage response = await client.GetAsync(url + filePath); HttpResponseMessage response = await client.GetAsync(url + filePath);