Skip to content

Commit ce6dbbc

Browse files
committed
[增加]1. 增加启动参数
1 parent fca59d5 commit ce6dbbc

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,17 @@ public sealed class LauncherOptions
9999
public ushort OuterPort { get; set; }
100100

101101
/// <summary>
102-
/// Http 地址
102+
/// API接口根路径,必须以/开头和以/结尾,默认为[/game/api/]
103103
/// </summary>
104-
[Option(nameof(HttpUrl), HelpText = "Http 地址")]
104+
[Option(nameof(HttpUrl), Default = "/game/api/", HelpText = "API接口根路径,必须以/开头和以/结尾,默认为[/game/api/]")]
105105
public string HttpUrl { get; set; }
106106

107+
/// <summary>
108+
/// HTTP 是否是开发模式,当是开发模式的时候将会启用Swagger
109+
/// </summary>
110+
[Option(nameof(HttpIsDevelopment), Default = false, HelpText = "HTTP 是否是开发模式,当是开发模式的时候将会启用Swagger")]
111+
public bool HttpIsDevelopment { get; set; }
112+
107113
/// <summary>
108114
/// HTTP 端口
109115
/// </summary>

GameFrameX.Utility/Setting/AppSetting.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ public string ToFormatString()
201201
/// </summary>
202202
public string HttpUrl { get; set; }
203203

204+
/// <summary>
205+
/// HTTP 是否是开发模式
206+
/// </summary>
207+
public bool HttpIsDevelopment { get; set; }
208+
204209
/// <summary>
205210
/// HTTP端口
206211
/// </summary>

0 commit comments

Comments
 (0)