```
feat(coolconfig): 修改端口配置字段名称 将配置结构体中的Port字段重命名为LoginPort,以更准确地反映其用途 作为登录端口配置,避免与GameOnlineID字段的注释混淆 ```
This commit is contained in:
@@ -64,15 +64,17 @@ func (c *BaseSysUserController) GetSession(ctx context.Context, req *SessionReq)
|
||||
}
|
||||
|
||||
if cool.Config.ServerInfo.IsDebug != 0 {
|
||||
res.IsDebug = 1
|
||||
res.LoginAddr = "192.168.1.44:53888"
|
||||
} else {
|
||||
res.LoginAddr = cool.Config.File.Domain + ":" + cool.Config.LoginPort
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type SessionRes struct {
|
||||
UserID int `json:"userid"`
|
||||
Session string `json:"session"`
|
||||
IsDebug int `json:"isDebug"`
|
||||
UserID int `json:"userid"`
|
||||
Session string `json:"session"`
|
||||
LoginAddr string `json:"loginaddr"`
|
||||
//Server model.ServerList `json:"server"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user