Skip to content

Commit bff0d91

Browse files
committed
[修复]1. 修复账号相同的BUG
1 parent 7730422 commit bff0d91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

GameFrameX.Hotfix/Logic/Account/Login/LoginComponentAgent.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public async Task OnLogin(INetWorkChannel workChannel, ReqLogin reqLogin)
2525
var loginState = await OwnerComponent.OnLogin(reqLogin);
2626
if (loginState == null)
2727
{
28-
var accountId = ActorIdGenerator.GetActorId(ActorType.Account);
28+
var accountId = ActorIdGenerator.GetUniqueId();
2929
loginState = await OwnerComponent.Register(accountId, reqLogin);
3030
}
3131

@@ -98,6 +98,5 @@ public async Task OnGetPlayerList(INetWorkChannel workChannel, ReqPlayerList req
9898

9999
await workChannel.WriteAsync(respPlayerList);
100100
}
101-
102101
}
103102
}

0 commit comments

Comments
 (0)