Merge pull request #54 from 631221182/dev-pr

fix[session]: gatewaySession授权UID问题
This commit is contained in:
godotg
2023-03-23 15:43:19 +08:00
committed by GitHub
@@ -125,7 +125,7 @@ public class Router implements IRouter {
logger.error("错误的网关授权信息,uid必须大于0");
return;
}
session.setUid(uid);
gatewaySession.setUid(uid);
EventBus.post(AuthUidToGatewayEvent.valueOf(gatewaySession.getSid(), uid));
NetContext.getRouter().send(session, AuthUidToGatewayConfirm.valueOf(uid), new GatewayAttachment(gatewaySession, null));