From 6a4ed2b2f158bb5952c35446fced3a815229206a Mon Sep 17 00:00:00 2001 From: 周伟奇 <zhouweiqi@situdata.com> Date: Mon, 15 Nov 2021 18:20:12 +0800 Subject: [PATCH] fix ecm --- src/apps/doc/ocr/ecm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/doc/ocr/ecm.py b/src/apps/doc/ocr/ecm.py index 15991c7..68b46c8 100644 --- a/src/apps/doc/ocr/ecm.py +++ b/src/apps/doc/ocr/ecm.py @@ -1,4 +1,5 @@ import os +import time import base64 import requests from common.redis_cache import redis_handler as rh @@ -47,8 +48,9 @@ class ECM: "r_creator_name", "r_modify_date", "r_modifier", "owner", "b_short_application_no", "b_short_contract_no", "b_customer_id", "b_customer_name", "b_customer_mobile", "b_coborrower_id", "b_coborrower_name", "b_guarantor_id", "b_guarantor_name", - "b_frontend_partner", "b_dealer_code", "b_dealer_name", "b_input_date", "b_comment", - "b_contract_no", "b_location"] + "b_frontend_partner", "b_dealer_code", "b_dealer_name", "b_comment", + "b_contract_no", "b_location", "b_company_name", "b_certificate_code", "b_vin", + "b_registration_no", "b_F2I_name"] def update_oauth_token(self): response = requests.post(self.oauth_url, headers=self.oauth_headers, data=self.oauth_payload, verify=False) @@ -144,6 +146,7 @@ class ECM: "b_application_no": doc.application_id, "b_region": "0", "b_region_name": self.b_region_name_map.get(business_type), + "b_input_date": time.strftime("%m/%d/%Y %X"), # "file_base64_content": "", } for key in self.upload_fields: -- libgit2 0.24.0