|
@@ -10,9 +10,9 @@ namespace ET.Server
|
|
|
{
|
|
|
protected override async ETTask Run(Scene scene, R2G_GetLoginKey request, G2R_GetLoginKey response, Action reply)
|
|
|
{
|
|
|
- long key = RandomGenerator.RandInt64();
|
|
|
- scene.GetComponent<GameSessionKeyComponent>().Add(key.ToString(), request.Account);
|
|
|
- response.Key = key + "," + request.Channel;
|
|
|
+ string key = RandomGenerator.RandInt64() + "," + request.Channel;
|
|
|
+ scene.GetComponent<GameSessionKeyComponent>().Add(key, request.Account);
|
|
|
+ response.Key = key;
|
|
|
response.GameId = scene.Id;
|
|
|
reply();
|
|
|
await ETTask.CompletedTask;
|