From 517f6c8ce6c68bfcd652ceeb7b79f79408dfec76 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 28 五月 2024 18:25:13 +0800 Subject: [PATCH] 注释NB撤/bug修改/手动拉黑前撤单/ --- third_data/code_plate_key_manager.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py index 582bb39..173a91a 100644 --- a/third_data/code_plate_key_manager.py +++ b/third_data/code_plate_key_manager.py @@ -699,7 +699,7 @@ block_codes_records = set() if limit_up_record_datas: for k in limit_up_record_datas: - if code_limit_up_reasons_dict.get(k[3]) == block: + if block in code_limit_up_reasons_dict.get(k[3]): block_codes_records.add(k[3]) if not block_codes: @@ -759,7 +759,7 @@ if current_shsz_rank < len(current_open_limit_up_codes) + max_rank: return True, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{current_shsz_rank}", is_strong_block, is_active_buy, current_shsz_rank, len( - block_codes),len(block_codes_records) + block_codes), len(block_codes_records) else: return False, False, f"銆恵block}銆戝墠鎺掍唬鐮侊細{front_current_shsz_rank_codes} 瓒呰繃{len(current_open_limit_up_codes) + max_rank}涓�", is_strong_block, is_active_buy, current_shsz_rank, len( block_codes), len(block_codes_records) @@ -814,7 +814,8 @@ current_limit_up_block_codes_dict, high_level_code_blocks=high_level_general_code_blocks, high_level_block_codes=high_level_general_block_codes) - fresults.append((block, can_buy, unique, msg, is_strong, is_active_buy, current_rank, block_limit_up_count, block_limit_up_record_count)) + fresults.append((block, can_buy, unique, msg, is_strong, is_active_buy, current_rank, block_limit_up_count, + block_limit_up_record_count)) return fresults, keys # 鏄惁鍙互涓嬪崟 @@ -823,7 +824,7 @@ @classmethod def can_buy(cls, code): if constant.TEST: - return [("娴嬭瘯", 0, 1)], True, cls.BLOCK_TYPE_NONE, [], set(), ["鍖栧伐"] + return [("娴嬭瘯", 0, 1, 1)], True, cls.BLOCK_TYPE_NONE, [], set(), ["鍖栧伐"] # if True: # # 娴嬭瘯 # return True, "涓嶅垽鏂澘鍧楄韩浣�" -- Gitblit v1.8.0