a1c4c8d3 by 冯轩

FIX:没有满足要求的流水时,逻辑报错的问题

1 parent e0d20435
...@@ -2424,7 +2424,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ ...@@ -2424,7 +2424,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
2424 # 只有电子流水,以电子为准 2424 # 只有电子流水,以电子为准
2425 reason = reason_n1 2425 reason = reason_n1
2426 result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N 2426 result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N
2427 elif not auto_elec_verify_list: 2427 elif not auto_elec_verify_list and auto_paper_verify_list:
2428 # 只有纸质流水
2428 paperTrue = len(auto_paper_verify_false_idx_list) <= 0 2429 paperTrue = len(auto_paper_verify_false_idx_list) <= 0
2429 paperNotClear = len(auto_paper_verify_true_idx_list) > 0 2430 paperNotClear = len(auto_paper_verify_true_idx_list) > 0
2430 if not paperTrue and paperNotClear: 2431 if not paperTrue and paperNotClear:
...@@ -2434,6 +2435,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ ...@@ -2434,6 +2435,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
2434 elif not paperTrue: 2435 elif not paperTrue:
2435 reason = reason_n3 2436 reason = reason_n3
2436 result = consts.RESULT_N 2437 result = consts.RESULT_N
2438 else:
2439 result = consts.RESULT_N
2440 reason = '高风险经销商流水类型异常'
2437 result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) 2441 result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason))
2438 2442
2439 if all_zhifubao_weixin: 2443 if all_zhifubao_weixin:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!