947e1a61 by 周伟奇

fix bug

1 parent db2bead1
......@@ -263,8 +263,8 @@ class Command(BaseCommand, LoggerMixin):
product_result[1] = product.get('coverage', {}).get('words', '')
insurance_ocr_result = {
'被保险人姓名': license_data.get('result', {}).get('insurer', {}).get('name', {}).get('words', ''),
'被保险人证件号码': license_data.get('result', {}).get('insurer', {}).get('certiCode', {}).get('words', ''),
'被保险人姓名': license_data.get('result', {}).get('insured', {}).get('name', {}).get('words', ''),
'被保险人证件号码': license_data.get('result', {}).get('insured', {}).get('certiCode', {}).get('words', ''),
'车架号': license_data.get('result', {}).get('vehicle', {}).get('VIN', {}).get('words', ''),
'机动车损失保险金额': product_result[0],
'机动车第三者责任保险金额': product_result[1],
......@@ -273,7 +273,7 @@ class Command(BaseCommand, LoggerMixin):
'保险起始日期': license_data.get('result', {}).get('startDate', {}).get('words', ''),
'保险截止日期': license_data.get('result', {}).get('endDate', {}).get('words', ''),
'保单章': '',
'特别约定第一受益人': license_data.get('result', {}).get('insured', {}).get('words', ''),
'特别约定第一受益人': license_data.get('result', {}).get('1stBeneficiary', {}).get('words', ''),
}
license_summary.setdefault(classify, []).append(insurance_ocr_result)
elif classify == consts.DDA_CLASSIFY: # DDA处理
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!