Merge branch 'feature/bd' into feature/0918
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 = { | ... | ... |
-
Please register or sign in to post a comment