Skip to content

Commit 69860a0

Browse files
committed
fix(LauncherOptions): 为ServerId属性添加默认值2000
防止在未明确设置ServerId时出现异常,确保合服操作的数据一致性
1 parent bcea673 commit 69860a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public sealed class LauncherOptions
201201
/// <summary>
202202
/// 服务器ID-如果需要合服,请确保不同服的ServerId一样。不然合服后数据会无法处理用户数据
203203
/// </summary>
204-
[Option(nameof(ServerId), Description = "服务器ID-如果需要合服,请确保不同服的ServerId一样。不然合服后数据会无法处理用户数据")]
204+
[Option(nameof(ServerId), DefaultValue = 2000, Description = "服务器ID-如果需要合服,请确保不同服的ServerId一样。不然合服后数据会无法处理用户数据")]
205205
[GrafanaLokiLabelTag]
206206
public int ServerId { get; set; }
207207

0 commit comments

Comments
 (0)