```
feat(coolconfig): 修改端口配置字段名称 将配置结构体中的Port字段重命名为LoginPort,以更准确地反映其用途 作为登录端口配置,避免与GameOnlineID字段的注释混淆 ```
This commit is contained in:
@@ -71,14 +71,14 @@ func Start() {
|
||||
socket.WithCORS(),
|
||||
socket.WithPort(port),
|
||||
)
|
||||
// go func() {
|
||||
rpcClient := rpc.StartClient(serverID, uint16(port), server)
|
||||
|
||||
rpcClient := rpc.StartClient(serverID, uint16(port), server) //连接rpc
|
||||
|
||||
controller.Maincontroller.RPCClient = *rpcClient //将RPC赋值Start
|
||||
controller.Maincontroller.Port = uint16(port) //赋值服务器ID
|
||||
controller.Init(true)
|
||||
xmlres.Initfile()
|
||||
config.NewServerService().SetServerID(serverID, gconv.Uint16(port))
|
||||
config.NewServerService().SetServerID(serverID, gconv.Uint16(port)) //设置当前服务器端口
|
||||
|
||||
server.Boot()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user