feat 协议

This commit is contained in:
2025-12-17 09:57:50 +08:00
parent 65bd1e5477
commit efa9f50d3e
11 changed files with 1999 additions and 81 deletions

View File

@@ -27,7 +27,6 @@ func (s *Server) ToClient(server grpc_pb.Gateway_ToClientServer) error {
client.WriteBytes(sc_pb.MessageID(args.MessageID), args.Payload)
}
} else {
if client := ws_handler.UserMgr.GetByUID(int(args.UID)); client != nil {
if client := ws_handler.UserMgr.GetByUID(args.UID); client != nil {
client.WriteBytes(sc_pb.MessageID(args.MessageID), args.Payload)
}