69661549 by 周伟奇

Merge branch 'feature/cms4' into feature/0918

2 parents d5db8edc 460d1042
......@@ -1477,7 +1477,7 @@ MVC34_COMPARE_LOGIC = {
}
BC_COMPARE_LOGIC = {
'accountNo': ('CardNum', 'se_common_compare', {}),
'accountNo': ('CardNum', 'se_common_compare', {'remove_space': True}),
'bankName': ('BankName', 'se_both_contain_compare', {}),
}
......
......@@ -179,6 +179,8 @@ class Comparison:
return self.build_res(input_s == ocr_s)
def se_common_compare(self, input_str, ocr_str, **kwargs):
if kwargs.get('remove_space', False):
input_str = input_str.replace(' ', '')
return self.build_res(input_str == ocr_str)
def ca_common_compare(self, input_str, ocr_str, **kwargs):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!