From 48fb7a00951f91bdc707e5dd2d196e5bccb752c3 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 18 六月 2025 18:41:30 +0800
Subject: [PATCH] 异常保护

---
 code_attribute/first_target_code_data_processor.py |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py
index 421e609..0e2c616 100644
--- a/code_attribute/first_target_code_data_processor.py
+++ b/code_attribute/first_target_code_data_processor.py
@@ -126,7 +126,8 @@
                 if not WantBuyCodesManager().is_in_cache(
                         code) and not gpcode_manager.BuyOpenLimitUpCodeManager().is_in_cache(code):
                     # 鏂伴鏉愮牬鍓嶉珮灏变笉闇�瑕佸姞榛�
-                    need_forbidden = new_block_processor.is_can_forbidden(code)
+                    # 鏂伴鏉愯鎷夐粦杩樻槸鎷夐粦
+                    need_forbidden = True  #new_block_processor.is_can_forbidden(code)
                     if need_forbidden:
                         if code_nature_analyse.is_price_too_high_in_days(code, volumes_data, limit_up_price)[0]:
                             # 鍒ゆ柇鏄惁澶珮
@@ -135,9 +136,18 @@
 
                         if tool.is_ge_code(code) and float(limit_up_price) < 10:
                             l2_trade_util.forbidden_trade(code, "鍒涗笟鏉胯偂浠�10鍧楀唴")
+                            continue
 
                         if len(k_format) > 14 and k_format[14]:
-                            l2_trade_util.forbidden_trade(code, "鏄ㄦ棩鐐告澘")
+                            l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ユ定鍋�/鐐告澘")
+                            continue
+
+                        if len(k_format) > 15 and k_format[15]:
+                            l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ヨ穼鍋�")
+                            continue
+
+                        if len(k_format) > 12 and k_format[12]:
+                            l2_trade_util.forbidden_trade(code, "涓婁釜浜ゆ槗鏃ユ尟骞呰繃澶�")
                             continue
 
                         # if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(code, volumes_data):

--
Gitblit v1.8.0