From 21c96ed504f93f16ce6f8a3ccf164a87c9edd9c0 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 30 一月 2024 15:45:23 +0800
Subject: [PATCH] 增加调试日志

---
 third_data/code_plate_key_manager.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py
index 948a97c..3715995 100644
--- a/third_data/code_plate_key_manager.py
+++ b/third_data/code_plate_key_manager.py
@@ -581,17 +581,17 @@
         if current_shsz_rank < len(current_open_limit_up_codes) + max_rank:
             return True, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{current_shsz_rank}", is_strong_block
         else:
-            k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code)
-            if k_format and k_format[8][0]:
-                # 鍏锋湁杈ㄨ瘑搴�
-                return True, False, f"銆恵block}銆戝叿鏈夎鲸璇嗗害", is_strong_block
+            # k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code)
+            # if k_format and k_format[8][0]:
+            #     # 鍏锋湁杈ㄨ瘑搴�
+            #     return True, False, f"銆恵block}銆戝叿鏈夎鲸璇嗗害", is_strong_block
             # 鐪嬭嚜鐢辨祦閫氬競鍊兼槸鍚﹀皬浜�20浜�
             if is_strong_block and current_shsz_rank < len(current_open_limit_up_codes) + max_rank + 1:
-                zyltgb = global_util.zyltgb_map.get(code)
+                zyltgb_as_yi = round(global_util.zyltgb_map.get(code) / 100000000, 2) if code in global_util.zyltgb_map else None
                 situation = MarketSituationManager().get_situation_cache()
-                zylt_threshold = buy_condition_util.get_zyltgb_threshold(situation)
-                if zyltgb and zylt_threshold[2] <= zyltgb <= zylt_threshold[3]:
-                    return True, False, f"銆恵block}銆戝己鍔挎澘鍧� 鑷敱娴侀�氬競鍊�({zyltgb})澶т簬{zylt_threshold[2]//100000000}浜� 灏忎簬{zylt_threshold[3]//100000000}浜�", is_strong_block
+                zylt_threshold_as_yi = buy_condition_util.get_zyltgb_threshold(situation)
+                if zyltgb_as_yi and zylt_threshold_as_yi[2] <= zyltgb_as_yi <= zylt_threshold_as_yi[3]:
+                    return True, False, f"銆恵block}銆戝己鍔挎澘鍧� 鑷敱娴侀�氬競鍊�({zyltgb_as_yi})澶т簬{zylt_threshold_as_yi[2]}浜� 灏忎簬{zylt_threshold_as_yi[3]}浜�", is_strong_block
             return False, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{front_current_shsz_rank_codes} 瓒呰繃{len(current_open_limit_up_codes) + max_rank}涓�", is_strong_block
 
         # 杩囨椂鐨勪唬鐮�

--
Gitblit v1.8.0