57a6afc2 by 周伟奇

Merge branch 'fix/1103' into feature/1119

2 parents cc113aa9 1de332fe
...@@ -414,6 +414,10 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): ...@@ -414,6 +414,10 @@ def ca_compare_license(license_en, ocr_res_dict, field_list):
414 is_find = True 414 is_find = True
415 section_img_info[consts.SECTION_IMG_PATH_KEY] = ocr_res_list[res_idx].get(consts.SECTION_IMG_PATH_KEY, '') 415 section_img_info[consts.SECTION_IMG_PATH_KEY] = ocr_res_list[res_idx].get(consts.SECTION_IMG_PATH_KEY, '')
416 section_img_info[consts.ALL_POSITION_KEY] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY, {}) 416 section_img_info[consts.ALL_POSITION_KEY] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY, {})
417 if special_expiry_date:
418 section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get(
419 consts.SECTION_IMG_PATH_KEY_2, '')
420 section_img_info[consts.ALL_POSITION_KEY_2] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY_2, {})
417 421
418 # 过期期限特殊处理 422 # 过期期限特殊处理
419 if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: 423 if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N:
...@@ -1465,6 +1469,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list): ...@@ -1465,6 +1469,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list):
1465 if special_expiry_date: 1469 if special_expiry_date:
1466 section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get( 1470 section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get(
1467 consts.SECTION_IMG_PATH_KEY_2, '') 1471 consts.SECTION_IMG_PATH_KEY_2, '')
1472 section_img_info[consts.ALL_POSITION_KEY_2] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY_2, {})
1468 1473
1469 # 过期期限特殊处理 1474 # 过期期限特殊处理
1470 if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: 1475 if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!