File tree 1 file changed +13
-12
lines changed
GameFrameX.Utility/Setting
1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -90,20 +90,21 @@ public static void SetCurrentSetting(AppSetting setting)
90
90
ArgumentNullException . ThrowIfNull ( setting , nameof ( setting ) ) ;
91
91
if ( setting . SaveDataInterval < 5000 )
92
92
{
93
+ LogHelper . WarnConsole ( $ "SaveDataInterval小于5000毫秒,使用默认值为:{ GlobalConst . SaveIntervalInMilliSeconds } 毫秒") ;
93
94
setting . SaveDataInterval = GlobalConst . SaveIntervalInMilliSeconds ;
94
95
}
95
-
96
- if ( setting . HttpUrl . IsNullOrEmptyOrWhiteSpace ( ) )
97
- {
98
- LogHelper . WarnConsole ( "HttpUrl为空,使用默认值为: /game/api/" ) ;
99
- setting . HttpUrl = "/game/api/" ;
100
- }
101
-
102
- if ( setting . NetWorkSendTimeOutSeconds < 1 )
103
- {
104
- LogHelper . WarnConsole ( "NetWorkSendTimeOutSeconds小于1秒,使用默认值为:5 秒" ) ;
105
- setting . NetWorkSendTimeOutSeconds = 5 ;
106
- }
96
+
97
+ if ( setting . HttpUrl . IsNullOrEmptyOrWhiteSpace ( ) )
98
+ {
99
+ LogHelper . WarnConsole ( "HttpUrl为空,使用默认值为: /game/api/" ) ;
100
+ setting . HttpUrl = "/game/api/" ;
101
+ }
102
+
103
+ if ( setting . NetWorkSendTimeOutSeconds < 1 )
104
+ {
105
+ LogHelper . WarnConsole ( "NetWorkSendTimeOutSeconds小于1秒,使用默认值为:5 秒" ) ;
106
+ setting . NetWorkSendTimeOutSeconds = 5 ;
107
+ }
107
108
108
109
CurrentSetting = setting ;
109
110
}
You can’t perform that action at this time.
0 commit comments