Skip to content

Commit 3e28029

Browse files
committed
fix(LauncherOptions): 移除ServerId的默认值以避免合服问题
移除ServerId属性的默认值2000,确保合服时不同服的ServerId必须显式设置,防止用户数据处理错误
1 parent a24f8de commit 3e28029

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), DefaultValue = 2000, Description = "服务器ID-如果需要合服,请确保不同服的ServerId一样。不然合服后数据会无法处理用户数据")]
204+
[Option(nameof(ServerId), Description = "服务器ID-如果需要合服,请确保不同服的ServerId一样。不然合服后数据会无法处理用户数据")]
205205
[GrafanaLokiLabelTag]
206206
public int ServerId { get; set; }
207207

0 commit comments

Comments
 (0)