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