|
@@ -29,19 +29,10 @@ namespace ET.Server
|
|
|
|
|
|
session.AddComponent<SessionLockComponent>();
|
|
|
|
|
|
- // 验证参数
|
|
|
- if (string.IsNullOrEmpty(request.RoomId))
|
|
|
- {
|
|
|
- Log.Debug($"直播间id为空");
|
|
|
- response.Error = ErrorCode.ERR_RoomIdIsNull;
|
|
|
- reply();
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
// todo 生成token, 后期改成正式token
|
|
|
- string token = request.RoomId;
|
|
|
+ // string token = request.RoomId;
|
|
|
|
|
|
- // 服务器列表
|
|
|
+ // todo 服务器列表,暂定根据cpu负载做负载均衡
|
|
|
List<StartSceneConfig> gameList = RealmGateAddressHelper.GetAllGame(session.DomainZone());
|
|
|
|
|
|
if (gameList is { Count: > 0 })
|
|
@@ -54,7 +45,6 @@ namespace ET.Server
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- response.Token = token;
|
|
|
reply();
|
|
|
await ETTask.CompletedTask;
|
|
|
}
|