From 2311357c53a11b11df729a4853dd75141e10a688 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 12 十一月 2024 14:09:22 +0800
Subject: [PATCH] bug修复

---
 servers/data_server.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/servers/data_server.py b/servers/data_server.py
index d8c1e12..b52e1fa 100644
--- a/servers/data_server.py
+++ b/servers/data_server.py
@@ -9,8 +9,9 @@
 from code_attribute.gpcode_manager import BlackListCodeManager
 from l2.l2_transaction_data_manager import HuaXinBuyOrderManager
 from log_module.log import logger_system, logger_debug, logger_kpl_limit_up, logger_request_api
-from third_data.kpl_data_constant import LimitUpDataConstant
+from third_data.kpl_data_constant import LimitUpDataConstant, LimitUpCodesBlockRecordManager
 from third_data.kpl_limit_up_data_manager import LatestLimitUpBlockManager, CodeLimitUpSequenceManager
+from third_data.third_blocks_manager import BlockMapManager
 from trade.buy_strategy import OpenLimitUpGoodBlocksBuyStrategy
 from utils import global_util, tool, data_export_util
 from code_attribute import gpcode_manager
@@ -562,7 +563,12 @@
             codes_info = []
             for d in record_limit_up_datas:
                 _code = d[3]
-                blocks = LimitUpDataConstant.get_blocks_with_history(_code)
+                # blocks = LimitUpDataConstant.get_blocks_with_history(_code)
+                blocks = LimitUpCodesBlockRecordManager().get_radical_buy_blocks(_code)
+                if not blocks:
+                    blocks = set()
+                blocks = BlockMapManager().filter_blocks(blocks)
+
                 if blocks is not None and plate not in blocks:
                     continue
                 if not tool.is_can_buy_code(d[3]):

--
Gitblit v1.8.0