using Fantasy; using Fantasy.Async; using Fantasy.Network.Interface; namespace NB.Chat; public class G2S_ExitRequestHandler : RouteRPC { protected override async FTask Run(Scene scene, G2S_ExitRequest request, S2G_ExitResponse response, Action reply) { // 在缓存中检查该账号是否存在 var chatUnitManageComponent = scene.GetComponent(); await chatUnitManageComponent.Offline(scene, request.AccountId, request.GateRouteId); } }