Skip to content

Commit 827ec95

Browse files
committed
[修改]1. HTTPURL没有设置的缺省设置
1 parent e8a022c commit 827ec95

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

GameFrameX.Utility/Setting/GlobalSettings.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public static void SetCurrentSetting(AppSetting setting)
9292
{
9393
setting.SaveDataInterval = GlobalConst.SaveIntervalInMilliSeconds;
9494
}
95+
96+
if (setting.HttpUrl.IsNullOrEmptyOrWhiteSpace())
97+
{
98+
LogHelper.WarnConsole("HttpUrl为空,使用默认值为: /game/api/");
99+
setting.HttpUrl = "/game/api/";
100+
}
95101

96102
CurrentSetting = setting;
97103
}

0 commit comments

Comments
 (0)