fix bug
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -263,8 +263,8 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -263,8 +263,8 @@ class Command(BaseCommand, LoggerMixin): |
263 | product_result[1] = product.get('coverage', {}).get('words', '') | 263 | product_result[1] = product.get('coverage', {}).get('words', '') |
264 | 264 | ||
265 | insurance_ocr_result = { | 265 | insurance_ocr_result = { |
266 | '被保险人姓名': license_data.get('result', {}).get('insurer', {}).get('name', {}).get('words', ''), | 266 | '被保险人姓名': license_data.get('result', {}).get('insured', {}).get('name', {}).get('words', ''), |
267 | '被保险人证件号码': license_data.get('result', {}).get('insurer', {}).get('certiCode', {}).get('words', ''), | 267 | '被保险人证件号码': license_data.get('result', {}).get('insured', {}).get('certiCode', {}).get('words', ''), |
268 | '车架号': license_data.get('result', {}).get('vehicle', {}).get('VIN', {}).get('words', ''), | 268 | '车架号': license_data.get('result', {}).get('vehicle', {}).get('VIN', {}).get('words', ''), |
269 | '机动车损失保险金额': product_result[0], | 269 | '机动车损失保险金额': product_result[0], |
270 | '机动车第三者责任保险金额': product_result[1], | 270 | '机动车第三者责任保险金额': product_result[1], |
... | @@ -273,7 +273,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -273,7 +273,7 @@ class Command(BaseCommand, LoggerMixin): |
273 | '保险起始日期': license_data.get('result', {}).get('startDate', {}).get('words', ''), | 273 | '保险起始日期': license_data.get('result', {}).get('startDate', {}).get('words', ''), |
274 | '保险截止日期': license_data.get('result', {}).get('endDate', {}).get('words', ''), | 274 | '保险截止日期': license_data.get('result', {}).get('endDate', {}).get('words', ''), |
275 | '保单章': '', | 275 | '保单章': '', |
276 | '特别约定第一受益人': license_data.get('result', {}).get('insured', {}).get('words', ''), | 276 | '特别约定第一受益人': license_data.get('result', {}).get('1stBeneficiary', {}).get('words', ''), |
277 | } | 277 | } |
278 | license_summary.setdefault(classify, []).append(insurance_ocr_result) | 278 | license_summary.setdefault(classify, []).append(insurance_ocr_result) |
279 | elif classify == consts.DDA_CLASSIFY: # DDA处理 | 279 | elif classify == consts.DDA_CLASSIFY: # DDA处理 | ... | ... |
-
Please register or sign in to post a comment