merge
Showing
2 changed files
with
7 additions
and
1 deletions
... | @@ -72,6 +72,8 @@ import time | ... | @@ -72,6 +72,8 @@ import time |
72 | from django.http import HttpResponse | 72 | from django.http import HttpResponse |
73 | from django.utils.encoding import escape_uri_path | 73 | from django.utils.encoding import escape_uri_path |
74 | from PIL import Image | 74 | from PIL import Image |
75 | from django.http import HttpResponse | ||
76 | from django.utils.encoding import escape_uri_path | ||
75 | 77 | ||
76 | 78 | ||
77 | class CustomDate(fields.Date): | 79 | class CustomDate(fields.Date): | ... | ... |
... | @@ -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: | ... | ... |
-
Please register or sign in to post a comment