ADD:log
Showing
2 changed files
with
4 additions
and
1 deletions
... | @@ -1304,6 +1304,7 @@ COMPARE_FIELDS = ( | ... | @@ -1304,6 +1304,7 @@ COMPARE_FIELDS = ( |
1304 | HIL_CONTRACT_1_FIELD, | 1304 | HIL_CONTRACT_1_FIELD, |
1305 | HIL_CONTRACT_2_FIELD, | 1305 | HIL_CONTRACT_2_FIELD, |
1306 | HIL_CONTRACT_3_FIELD, | 1306 | HIL_CONTRACT_3_FIELD, |
1307 | FS_FIELD, | ||
1307 | ) | 1308 | ) |
1308 | 1309 | ||
1309 | PRE_COMPARE_FIELDS = ( | 1310 | PRE_COMPARE_FIELDS = ( | ... | ... |
... | @@ -2602,11 +2602,13 @@ def se_fs_compare(license_en, ocr_res_dict, field_list): | ... | @@ -2602,11 +2602,13 @@ def se_fs_compare(license_en, ocr_res_dict, field_list): |
2602 | break | 2602 | break |
2603 | 2603 | ||
2604 | for idx, (name, value) in enumerate(field_list): | 2604 | for idx, (name, value) in enumerate(field_list): |
2605 | compare_log.info('{0} [se_fs_compare for ... in] [idx:{1}] [name:{2}] [value:{3}]'.format(log_base, idx, name, value)) | ||
2605 | ocr_str = ocr_res_list[res_idx].get(compare_logic[name][0]) | 2606 | ocr_str = ocr_res_list[res_idx].get(compare_logic[name][0]) |
2606 | 2607 | compare_log.info('{0} [se_fs_compare ocr_str] [ocr_str:{1}]'.format(log_base, ocr_str)) | |
2607 | #hash值/公章 不需要ocr结果,所以即使为空也可以进入比对 | 2608 | #hash值/公章 不需要ocr结果,所以即使为空也可以进入比对 |
2608 | if isinstance(ocr_str, str) or ocr_str == 'code' or ocr_str == 'stamp': | 2609 | if isinstance(ocr_str, str) or ocr_str == 'code' or ocr_str == 'stamp': |
2609 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) | 2610 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) |
2611 | compare_log.info('{0} [se_fs_compare result:{1}]'.format(log_base, result)) | ||
2610 | no_key = False | 2612 | no_key = False |
2611 | else: | 2613 | else: |
2612 | result = consts.RESULT_N | 2614 | result = consts.RESULT_N | ... | ... |
-
Please register or sign in to post a comment