MOD:allowBsType改为判断-仅接受银行流水-
Showing
1 changed file
with
13 additions
and
13 deletions
... | @@ -1224,9 +1224,9 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -1224,9 +1224,9 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
1224 | ] | 1224 | ] |
1225 | 1225 | ||
1226 | #在比对逻辑中添加字段 | 1226 | #在比对逻辑中添加字段 |
1227 | if '不接受支付宝/微信' in cms_info.get('autoApprovedDetails', {}).get('PolicyComments', ''): | 1227 | if '仅接受银行流水' in cms_info.get('autoApprovedDetails', {}).get('PolicyComments', ''): |
1228 | #bs_field_input.append((consts.SE_BS_FIELD[9], '不接受支付宝/微信')) | 1228 | #bs_field_input.append((consts.SE_BS_FIELD[9], '仅接受银行流水')) |
1229 | allow_bs_type = '不接受支付宝/微信' | 1229 | allow_bs_type = '仅接受银行流水' |
1230 | else: | 1230 | else: |
1231 | #bs_field_input.append((consts.SE_BS_FIELD[9], '全部')) | 1231 | #bs_field_input.append((consts.SE_BS_FIELD[9], '全部')) |
1232 | allow_bs_type = '全部' | 1232 | allow_bs_type = '全部' |
... | @@ -1894,9 +1894,9 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect | ... | @@ -1894,9 +1894,9 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
1894 | ] | 1894 | ] |
1895 | 1895 | ||
1896 | #在比对逻辑中添加字段 | 1896 | #在比对逻辑中添加字段 |
1897 | if '不接受支付宝/微信' in cms_info.get('autoApprovedDetails', {}).get('PolicyComments', ''): | 1897 | if '仅接受银行流水' in cms_info.get('autoApprovedDetails', {}).get('PolicyComments', ''): |
1898 | #bs_field_input.append((consts.SE_BS_FIELD[9], '不接受支付宝/微信')) | 1898 | #bs_field_input.append((consts.SE_BS_FIELD[9], '仅接受银行流水')) |
1899 | allow_bs_type = '不接受支付宝/微信' | 1899 | allow_bs_type = '仅接受银行流水' |
1900 | else: | 1900 | else: |
1901 | #bs_field_input.append((consts.SE_BS_FIELD[9], '全部')) | 1901 | #bs_field_input.append((consts.SE_BS_FIELD[9], '全部')) |
1902 | allow_bs_type = '全部' | 1902 | allow_bs_type = '全部' |
... | @@ -2249,8 +2249,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2249,8 +2249,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2249 | verify_bool = ocr_res.get('verify', False) | 2249 | verify_bool = ocr_res.get('verify', False) |
2250 | e_bank = ocr_res.get('e_bank', False) | 2250 | e_bank = ocr_res.get('e_bank', False) |
2251 | bankStatement_type = ocr_res.get('bankStatement_type', '') | 2251 | bankStatement_type = ocr_res.get('bankStatement_type', '') |
2252 | # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 | 2252 | # 如果是高风险经销商,cms信息中包含‘仅接受银行流水’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 |
2253 | if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in ['12', '13', '48']: | 2253 | if allow_bs_type == '仅接受银行流水' and bankStatement_type in ['12', '13', '48']: |
2254 | continue | 2254 | continue |
2255 | all_zhifubao_weixin = False | 2255 | all_zhifubao_weixin = False |
2256 | #verify_list.append(verify_bool) | 2256 | #verify_list.append(verify_bool) |
... | @@ -2342,7 +2342,7 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2342,7 +2342,7 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2342 | # 核查点名称,cms传值,比对结果,ocr结果,图片路径,错误类型,错误描述 | 2342 | # 核查点名称,cms传值,比对结果,ocr结果,图片路径,错误类型,错误描述 |
2343 | result_field_list.append(('类型', allow_bs_type, consts.RESULT_N, '全部为支付宝/微信', empty_str, ErrorType.NF.value, '高风险经销商流水类型异常')) | 2343 | result_field_list.append(('类型', allow_bs_type, consts.RESULT_N, '全部为支付宝/微信', empty_str, ErrorType.NF.value, '高风险经销商流水类型异常')) |
2344 | else: | 2344 | else: |
2345 | result_field_list.append(('类型', allow_bs_type, consts.RESULT_Y, '包含支付宝/微信以外流水', empty_str, empty_error_type, '')) | 2345 | result_field_list.append(('类型', allow_bs_type, consts.RESULT_Y, '包含支持的流水类型', empty_str, empty_error_type, '')) |
2346 | 2346 | ||
2347 | # 担保人1 | 2347 | # 担保人1 |
2348 | dbr1_best_res = {} | 2348 | dbr1_best_res = {} |
... | @@ -2350,8 +2350,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2350,8 +2350,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2350 | max_correct_count = 0 | 2350 | max_correct_count = 0 |
2351 | for ocr_res in ocr_res_list: | 2351 | for ocr_res in ocr_res_list: |
2352 | bankStatement_type = ocr_res.get('bankStatement_type', '') | 2352 | bankStatement_type = ocr_res.get('bankStatement_type', '') |
2353 | # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 | 2353 | # 如果是高风险经销商,cms信息中包含‘仅接受银行流水’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 |
2354 | if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in ['12', '13', '48']: | 2354 | if allow_bs_type == '仅接受银行流水' and bankStatement_type in ['12', '13', '48']: |
2355 | continue | 2355 | continue |
2356 | 2356 | ||
2357 | correct_count = 0 | 2357 | correct_count = 0 |
... | @@ -2387,8 +2387,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2387,8 +2387,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2387 | max_correct_count = 0 | 2387 | max_correct_count = 0 |
2388 | for ocr_res in ocr_res_list: | 2388 | for ocr_res in ocr_res_list: |
2389 | bankStatement_type = ocr_res.get('bankStatement_type', '') | 2389 | bankStatement_type = ocr_res.get('bankStatement_type', '') |
2390 | # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 | 2390 | # 如果是高风险经销商,cms信息中包含‘仅接受银行流水’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 |
2391 | if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in ['12', '13', '48']: | 2391 | if allow_bs_type == '仅接受银行流水' and bankStatement_type in ['12', '13', '48']: |
2392 | continue | 2392 | continue |
2393 | correct_count = 0 | 2393 | correct_count = 0 |
2394 | dbr2_tmp_res_part = {} | 2394 | dbr2_tmp_res_part = {} | ... | ... |
-
Please register or sign in to post a comment