This commit is contained in:
u4pak 2024-02-04 14:31:28 -08:00
parent 10733c1d80
commit 5f3cee0a99
2 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@ using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Partypacker.Core
{
@ -12,14 +13,14 @@ namespace Partypacker.Core
{
public static string BaseURL =
#if DEBUG
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://sparks-staging.coolmath.tech";
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#else
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#endif
public static string DashboardURL =
#if DEBUG
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://sparks-staging.coolmath.tech";
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#else
MainWindow.settings.GetValue("Launcher", "dashurl") ?? "https://partypack.mcthe.dev";
#endif
@ -46,7 +47,7 @@ namespace Partypacker.Core
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
MessageBox.Show(ex.Message);
return new KeyValuePair<bool, string>(false, string.Empty);
}
}

View File

@ -132,7 +132,7 @@ namespace Partypacker.Net
{
string BaseURL =
#if DEBUG
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://sparks-staging.coolmath.tech";
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#else
MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev";
#endif