0970d38c by 周伟奇

fix ca compare bug

1 parent a84f1276
......@@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
if len(field_list) > 0:
field_failed['individualCusInfo'].append(';'.join(field_list))
corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo', {})
corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo')
if corporate_res is not None:
total_fields += 8
if not successful_at_this_level:
......@@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
if len(corporate_field_list) > 0:
field_failed['corporateCusInfo'].append(';'.join(corporate_field_list))
used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo', {})
used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo')
if used_car_res is not None:
total_fields += 3
if not successful_at_this_level:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!