forked from Raphael/SCHALE.GameServer
🛠️Excel
This commit is contained in:
parent
a9ad62a4c3
commit
8b7981b91d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue