From 0f000922597f32bc525a3f1afa47fd160f76f22e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 18 一月 2024 00:25:22 +0800
Subject: [PATCH] 选票策略修改

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

diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py
index e1fe637..3715995 100644
--- a/third_data/code_plate_key_manager.py
+++ b/third_data/code_plate_key_manager.py
@@ -587,11 +587,11 @@
             #     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