mirror of
https://github.com/4sval/FModel.git
synced 2026-09-23 00:44:45 -05:00
using aes key of the current installed version if available
This commit is contained in:
@@ -14,7 +14,11 @@ namespace FModel.Grabber.Aes
|
||||
{
|
||||
if (NetworkInterface.GetIsNetworkAvailable())
|
||||
{
|
||||
BenResponse data = await Endpoints.GetJsonEndpoint<BenResponse>(Endpoints.BENBOT_AES).ConfigureAwait(false);
|
||||
(_, string fortniteVersion, string _) = Utils.Paks.GetFortnitePakFilesPath();
|
||||
BenResponse data = !string.IsNullOrEmpty(fortniteVersion)
|
||||
? await Endpoints.GetJsonEndpoint<BenResponse>(Endpoints.BENBOT_AES, fortniteVersion)
|
||||
.ConfigureAwait(false)
|
||||
: await Endpoints.GetJsonEndpoint<BenResponse>(Endpoints.BENBOT_AES).ConfigureAwait(false);
|
||||
return data;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -47,8 +47,8 @@ namespace FModel.Utils
|
||||
{
|
||||
if (url.Equals(BENBOT_HOTFIXES) && !string.IsNullOrEmpty(query))
|
||||
url += $"?lang={Uri.EscapeDataString(query)}";
|
||||
/*else if (url.Equals(BENBOT_AES) && !string.IsNullOrEmpty(query))
|
||||
url += $"?version={Uri.EscapeDataString(query)}";*/
|
||||
else if (url.Equals(BENBOT_AES) && !string.IsNullOrEmpty(query))
|
||||
url += $"?version={Uri.EscapeDataString(query)}";
|
||||
|
||||
DebugHelper.WriteLine("{0} {1} {2} {3}", "[FModel]", "[Endpoints]", "[GET]", url);
|
||||
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(3) })
|
||||
|
||||
Reference in New Issue
Block a user