From 287c506725b2d970f721f80169f83c2418cb0991 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 04 六月 2025 18:39:02 +0800 Subject: [PATCH] 添加新版低吸中间服务器 --- socket_manager.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/socket_manager.py b/socket_manager.py index 0c492d3..1c1200c 100644 --- a/socket_manager.py +++ b/socket_manager.py @@ -9,6 +9,7 @@ CLIENT_TYPE_COMMON = "common" CLIENT_TYPE_TRADE = "trade" CLIENT_TYPE_TRADE_SELL = "trade_sell" + CLIENT_TYPE_TRADE_LOW_SUCTION = "trade_low_suction" # 鍙浆鍊哄鎴风 CLIENT_TYPE_TRADE_CB = "trade_cb" @@ -18,7 +19,8 @@ @classmethod def add_client(cls, _type, rid, sk): - if _type == cls.CLIENT_TYPE_COMMON or _type == cls.CLIENT_TYPE_TRADE or _type == cls.CLIENT_TYPE_TRADE_SELL or _type == cls.CLIENT_TYPE_TRADE_CB: + if _type in {cls.CLIENT_TYPE_COMMON, cls.CLIENT_TYPE_TRADE, cls.CLIENT_TYPE_TRADE_SELL, + cls.CLIENT_TYPE_TRADE_CB, cls.CLIENT_TYPE_TRADE_LOW_SUCTION}: # 浜ゆ槗鍒楄〃 if _type not in cls.socket_client_dict: cls.socket_client_dict[_type] = [] -- Gitblit v1.8.0