From 4ee1bd5de9ca76a69adac6e17a11bd686c742ef3 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 22 五月 2024 18:57:54 +0800
Subject: [PATCH] 融入交易

---
 socket_manager.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/socket_manager.py b/socket_manager.py
index f92cebe..0c492d3 100644
--- a/socket_manager.py
+++ b/socket_manager.py
@@ -18,7 +18,7 @@
 
     @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:
+        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 not in cls.socket_client_dict:
                 cls.socket_client_dict[_type] = []
@@ -30,7 +30,7 @@
 
     @classmethod
     def acquire_client(cls, _type):
-        if _type == cls.CLIENT_TYPE_COMMON or _type == cls.CLIENT_TYPE_TRADE or _type == cls.CLIENT_TYPE_TRADE_SELL:
+        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.socket_client_dict:
                 # 鏍规嵁鎺掑簭娲昏穬鏃堕棿鎺掑簭
                 client_list = sorted(cls.socket_client_dict[_type], key=lambda x: cls.active_client_dict.get(x[0]) if x[

--
Gitblit v1.8.0