feat sn 改成 int64

This commit is contained in:
2026-01-30 11:56:10 +08:00
parent a7266f4bfa
commit b1dfb88f71
12 changed files with 30 additions and 30 deletions

View File

@@ -44,7 +44,7 @@ func (g *GatewayWsServer) OnHandShake(conn socket.ISocketConn) socket.Action {
func (g *GatewayWsServer) OnMessage(conn socket.ISocketConn, bytes []byte) socket.Action {
cli, ok := conn.GetParam("client").(*client.Client)
if !ok || cli.USN == "" || cli.Status != 1 {
if !ok || cli.USN == 0 || cli.Status != 1 {
return socket.Close
}
cli.OnEvent(&client.ClientEvent{Msg: bytes})
@@ -53,7 +53,7 @@ func (g *GatewayWsServer) OnMessage(conn socket.ISocketConn, bytes []byte) socke
func (g *GatewayWsServer) OnPong(conn socket.ISocketConn) {
cli, ok := conn.GetParam("client").(*client.Client)
if !ok || cli.USN == "" {
if !ok || cli.USN == 0 {
return
}
cli.OnEvent(&client.PongEvent{})