From ace1a8bc7e9935a941ea927ecd3a048e7265fc24 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 01 三月 2024 17:18:43 +0800 Subject: [PATCH] bug修改 --- third_data/code_plate_key_manager.py | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py index 948a97c..e26c98e 100644 --- a/third_data/code_plate_key_manager.py +++ b/third_data/code_plate_key_manager.py @@ -555,6 +555,7 @@ # 鑾峰彇浠g爜鐨勫垵娆℃定鍋滄椂闂� first_limit_up_time = time.time() + # if limit_up_record_datas: for r in limit_up_record_datas: if r[3] == code: first_limit_up_time = int(r[5]) @@ -581,17 +582,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