a28928d6 by 冯轩

Merge branch 'feature/CHINARPA-4660' into feature/uat-tmp

2 parents e64e2b07 130cb7ef
...@@ -2508,6 +2508,11 @@ def se_compare_license(license_en, ocr_res_dict, field_list): ...@@ -2508,6 +2508,11 @@ def se_compare_license(license_en, ocr_res_dict, field_list):
2508 elif ocr_field == consts.JYPZ_OCR_FIELD and name == consts.SE_GB_USED_FIELD[2]: 2508 elif ocr_field == consts.JYPZ_OCR_FIELD and name == consts.SE_GB_USED_FIELD[2]:
2509 result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) 2509 result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2])
2510 no_key = False 2510 no_key = False
2511 elif isinstance(ocr_str, int):
2512 # 目前应该只有财报的公章
2513 result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2])
2514 compare_log.info('{0} [{1}_license] [field:{2}] [input_str:{3}] [ocr_str:{4}] [result:{5}]'.format(log_base, license_en, name, value, ocr_str, result))
2515 no_key = False
2511 else: 2516 else:
2512 result = consts.RESULT_N 2517 result = consts.RESULT_N
2513 ocr_str = empty_str 2518 ocr_str = empty_str
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!