fix bug
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -1146,7 +1146,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | ... | @@ -1146,7 +1146,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): |
1146 | # CMS Vehicle Price / 1.13 * 10 % | 1146 | # CMS Vehicle Price / 1.13 * 10 % |
1147 | gzs_list = [gzs_status] | 1147 | gzs_list = [gzs_status] |
1148 | if gzs_status != consts.GZS_STATUS[1]: | 1148 | if gzs_status != consts.GZS_STATUS[1]: |
1149 | gzs_value = float(vehicle_principal_str) * 0.1 / 1.13 | 1149 | gzs_value = float(amount) * 0.1 / 1.13 |
1150 | gzs_list.append(gzs_value) | 1150 | gzs_list.append(gzs_value) |
1151 | gzs_list.append(float(gzs_price)) | 1151 | gzs_list.append(float(gzs_price)) |
1152 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[21], gzs_list)) | 1152 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[21], gzs_list)) |
... | @@ -1552,7 +1552,7 @@ def se_afc_contract_compare(license_en, ocr_res_dict, strip_list): | ... | @@ -1552,7 +1552,7 @@ def se_afc_contract_compare(license_en, ocr_res_dict, strip_list): |
1552 | if isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list): | 1552 | if isinstance(ocr_str_or_list, str) or isinstance(ocr_str_or_list, list): |
1553 | result = getattr(cp, compare_logic[name][1])(value, ocr_str_or_list, **compare_logic[name][2]) | 1553 | result = getattr(cp, compare_logic[name][1])(value, ocr_str_or_list, **compare_logic[name][2]) |
1554 | if isinstance(ocr_str_or_list, list): | 1554 | if isinstance(ocr_str_or_list, list): |
1555 | ocr_str = json.dumps(ocr_str_or_list) | 1555 | ocr_str = json.dumps(ocr_str_or_list, ensure_ascii=False) |
1556 | else: | 1556 | else: |
1557 | ocr_str = ocr_str_or_list | 1557 | ocr_str = ocr_str_or_list |
1558 | reason = compare_logic[name][3] | 1558 | reason = compare_logic[name][3] | ... | ... |
-
Please register or sign in to post a comment