MOD:银行流水担保人也判断是否支付宝微信
Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -2345,6 +2345,11 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2345,6 +2345,11 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
| 2345 | if len(dbr1_field_list) > 0: | 2345 | if len(dbr1_field_list) > 0: |
| 2346 | max_correct_count = 0 | 2346 | max_correct_count = 0 |
| 2347 | for ocr_res in ocr_res_list: | 2347 | for ocr_res in ocr_res_list: |
| 2348 | bs_type = ocr_res.get('bs_type', '') | ||
| 2349 | # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 | ||
| 2350 | if allow_bs_type == '不接受支付宝/微信' and bs_type in [12, 13, 48]: | ||
| 2351 | continue | ||
| 2352 | |||
| 2348 | correct_count = 0 | 2353 | correct_count = 0 |
| 2349 | dbr1_tmp_res_part = {} | 2354 | dbr1_tmp_res_part = {} |
| 2350 | for idx, (name, value) in enumerate(dbr1_field_list): | 2355 | for idx, (name, value) in enumerate(dbr1_field_list): |
| ... | @@ -2377,6 +2382,10 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2377,6 +2382,10 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
| 2377 | if len(dbr1_field_list) > 0: | 2382 | if len(dbr1_field_list) > 0: |
| 2378 | max_correct_count = 0 | 2383 | max_correct_count = 0 |
| 2379 | for ocr_res in ocr_res_list: | 2384 | for ocr_res in ocr_res_list: |
| 2385 | bs_type = ocr_res.get('bs_type', '') | ||
| 2386 | # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 | ||
| 2387 | if allow_bs_type == '不接受支付宝/微信' and bs_type in [12, 13, 48]: | ||
| 2388 | continue | ||
| 2380 | correct_count = 0 | 2389 | correct_count = 0 |
| 2381 | dbr2_tmp_res_part = {} | 2390 | dbr2_tmp_res_part = {} |
| 2382 | for idx, (name, value) in enumerate(dbr2_field_list): | 2391 | for idx, (name, value) in enumerate(dbr2_field_list): | ... | ... |
-
Please register or sign in to post a comment