From e867939e133f207c782d4efb33c4f80f4649eff9 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 27 七月 2023 11:10:14 +0800 Subject: [PATCH] bug修复 --- third_data/code_plate_key_manager.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py index 344f1bc..7eb3c70 100644 --- a/third_data/code_plate_key_manager.py +++ b/third_data/code_plate_key_manager.py @@ -425,16 +425,16 @@ code_limit_up_reason_dict, shsz=True) # 鑾峰彇涓绘澘鍘嗗彶韬綅 if is_top_4: - is_open_limit_up, msg = kpl_block_util.is_shsz_open_limit_up(code, block, limit_up_record_datas, - code_limit_up_reason_dict) - if is_open_limit_up: + pen_limit_up_codes = kpl_block_util.get_shsz_open_limit_up_codes(code, block, limit_up_record_datas, + code_limit_up_reason_dict) + if pen_limit_up_codes: # 涓绘澘寮�1 - if current_shsz_rank < 2 and record_shsz_rank < 2: + if current_shsz_rank < len(pen_limit_up_codes) + 1 and record_shsz_rank < len(pen_limit_up_codes) + 1: # 灞炰簬榫�1,榫�2 - return block, f"{block}锛歵op4娑ㄥ仠鏉垮潡锛屼富鏉垮紑1,灞炰簬榫�1/榫�2(瀹炴椂韬綅-{current_shsz_rank})" + return block, f"{block}锛歵op4娑ㄥ仠鏉垮潡锛屼富鏉垮紑1({pen_limit_up_codes}),灞炰簬涓绘澘鍓嶉緳{len(pen_limit_up_codes) + 1}(瀹炴椂韬綅-{current_shsz_rank})" else: msg_list.append( - f"鏉垮潡-{block}: top4娑ㄥ仠鏉垮潡锛屼富鏉垮紑1锛坽msg}锛�,涓嶄负涓绘澘榫�1榫�2锛堝疄鏃惰韩浣�-{current_shsz_rank},鍘嗗彶韬綅-{record_shsz_rank}锛�") + f"鏉垮潡-{block}: top4娑ㄥ仠鏉垮潡锛屼富鏉垮紑1锛坽pen_limit_up_codes}锛�,涓嶄负涓绘澘鍓嶉緳{len(pen_limit_up_codes) + 1}锛堝疄鏃惰韩浣�-{current_shsz_rank},鍘嗗彶韬綅-{record_shsz_rank}锛�") continue else: if current_shsz_rank == 0 and record_shsz_rank < 2: -- Gitblit v1.8.0