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):
ocr_str = empty_str
else:
ocr_str_or_list = ocr_res.get(compare_logic[name][0])
# 银行信息
if ocr_str_or_list is None and license_en == consts.AFC_CONTRACT_EN \
and is_gsyh is True and name in consts.CON_BANK_FIELD:
result = consts.RESULT_Y
ocr_str = empty_str
reason = compare_logic[name][3]
# 招商银行特殊
# if ocr_str_or_list is None and license_en == consts.AFC_CONTRACT_EN \
# and is_gsyh is True and name in consts.CON_BANK_FIELD:
# result = consts.RESULT_Y
# ocr_str = empty_str
# reason = compare_logic[name][3]
# 其他字段
elif isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list):
if isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list):
if is_gsyh is True and name in consts.CON_BANK_FIELD:
update_args = {'is_gsyh': is_gsyh}
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!