feat 踢人功能

This commit is contained in:
2026-01-08 22:57:58 +08:00
parent 265e522aff
commit 5af027b35c
5 changed files with 15 additions and 2 deletions

View File

@@ -3,8 +3,10 @@ package client
import (
"context"
"fmt"
"git.hlsq.asia/mmorpg/service-common/db/redis"
"git.hlsq.asia/mmorpg/service-common/log"
"git.hlsq.asia/mmorpg/service-common/net/socket"
"git.hlsq.asia/mmorpg/service-gateway/internal/global"
"go.uber.org/zap"
"runtime/debug"
"sync"
@@ -103,6 +105,7 @@ func (c *Client) onClose() {
}
c.Status = 2
UserMgr.Delete(c.USN)
redis.GetClient().HDel(c.ctx, fmt.Sprintf(global.KeyGatewayInfo, c.USN), global.HFieldInfoGatewaySID)
c.onLeave()
c.Done()
}