From dba42fe844a5ef5e42e4c1981ecb5a80f4824e32 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 26 三月 2025 09:49:00 +0800
Subject: [PATCH] bug修复

---
 trade/current_price_process_manager.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/trade/current_price_process_manager.py b/trade/current_price_process_manager.py
index c21e601..bcf2a4c 100644
--- a/trade/current_price_process_manager.py
+++ b/trade/current_price_process_manager.py
@@ -118,7 +118,10 @@
             if b not in top_in_blocks and tool.get_now_time_as_int() >= 100000:
                 # 10鐐逛箣鍚庢墠鑰冭檻鍑�娴佸叆
                 continue
-            index = top_in_blocks.index(b)
+            if b in top_in_blocks:
+                index = top_in_blocks.index(b)
+            else:
+                index = 1000
             special_codes = BlockSpecialCodesManager().get_block_codes(b)
             if not special_codes or code not in special_codes:
                 continue

--
Gitblit v1.8.0