dee1b339 by 周伟奇

fix gsyh afc ht\

1 parent 1b50f4ba
...@@ -2368,14 +2368,14 @@ def se_contract_compare(license_en, ocr_res_dict, strip_list, is_gsyh): ...@@ -2368,14 +2368,14 @@ def se_contract_compare(license_en, ocr_res_dict, strip_list, is_gsyh):
2368 ocr_str = empty_str 2368 ocr_str = empty_str
2369 else: 2369 else:
2370 ocr_str_or_list = ocr_res.get(compare_logic[name][0]) 2370 ocr_str_or_list = ocr_res.get(compare_logic[name][0])
2371 # 银行信息 2371 # 招商银行特殊
2372 if ocr_str_or_list is None and license_en == consts.AFC_CONTRACT_EN \ 2372 # if ocr_str_or_list is None and license_en == consts.AFC_CONTRACT_EN \
2373 and is_gsyh is True and name in consts.CON_BANK_FIELD: 2373 # and is_gsyh is True and name in consts.CON_BANK_FIELD:
2374 result = consts.RESULT_Y 2374 # result = consts.RESULT_Y
2375 ocr_str = empty_str 2375 # ocr_str = empty_str
2376 reason = compare_logic[name][3] 2376 # reason = compare_logic[name][3]
2377 # 其他字段 2377 # 其他字段
2378 elif isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list): 2378 if isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list):
2379 if is_gsyh is True and name in consts.CON_BANK_FIELD: 2379 if is_gsyh is True and name in consts.CON_BANK_FIELD:
2380 update_args = {'is_gsyh': is_gsyh} 2380 update_args = {'is_gsyh': is_gsyh}
2381 for k, v in compare_logic[name][2].items(): 2381 for k, v in compare_logic[name][2].items():
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!