feat(coolconfig): 修改端口配置字段名称

将配置结构体中的Port字段重命名为LoginPort,以更准确地反映其用途
作为登录端口配置,避免与GameOnlineID字段的注释混淆
```
This commit is contained in:
昔念
2026-01-20 16:59:23 +08:00
parent 07d25b3e96
commit 8049e273f6
8 changed files with 25 additions and 21 deletions

View File

@@ -10,7 +10,7 @@ type sConfig struct {
Eps bool `json:"eps,omitempty"` // 是否开启eps
File *file `json:"file,omitempty"` // 文件上传配置
Name string `json:"name"` // 项目名称
Port string `json:"port"`
LoginPort string `json:"port"`
GameOnlineID uint16 `json:"port_bl"` //这个是命令行输入的参数
ServerInfo ServerList
@@ -70,7 +70,7 @@ func newConfig() *sConfig {
AutoMigrate: GetCfgWithDefault(ctx, "blazing.autoMigrate", g.NewVar(false)).Bool(),
Name: GetCfgWithDefault(ctx, "server.name", g.NewVar("")).String(),
Eps: GetCfgWithDefault(ctx, "blazing.eps", g.NewVar(false)).Bool(),
Port: string(GetCfgWithDefault(ctx, "server.port", g.NewVar("8080")).String()),
LoginPort: string(GetCfgWithDefault(ctx, "server.port", g.NewVar("8080")).String()),
RPC: GetCfgWithDefault(ctx, "server.rpc", g.NewVar("8080")).Uint16(),
//GamePort: GetCfgWithDefault(ctx, "server.game", g.NewVar("8080")).Uint64s(),