d37597e9 by 周伟奇

Merge branch 'feature/bd' into feature/0918

2 parents 47417128 984fdff1
...@@ -256,10 +256,10 @@ class Command(BaseCommand, LoggerMixin): ...@@ -256,10 +256,10 @@ class Command(BaseCommand, LoggerMixin):
256 product_result = ['', '', ''] 256 product_result = ['', '', '']
257 for product in license_data.get('result', {}).get('productList', []): 257 for product in license_data.get('result', {}).get('productList', []):
258 name = product.get('name', {}).get('words', '') 258 name = product.get('name', {}).get('words', '')
259 if name == '机动车损失保险': 259 if name.find('机动车损失保险') != -1:
260 product_result[0] = product.get('coverage', {}).get('words', '') 260 product_result[0] = product.get('coverage', {}).get('words', '')
261 product_result[2] = product.get('deductible_franchise', {}).get('words', '') 261 product_result[2] = product.get('deductible_franchise', {}).get('words', '')
262 elif name == '机动车第三者责任保险': 262 elif name.find('机动车第三者责任保险') != -1:
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 = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!