add eapp skip
Showing
1 changed file
with
8 additions
and
1 deletions
| ... | @@ -106,6 +106,7 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -106,6 +106,7 @@ class UploadDocView(GenericView, DocHandler): | 
| 106 | application_id = application_data.get('applicationId') | 106 | application_id = application_data.get('applicationId') | 
| 107 | document_scheme = document.get('documentScheme') | 107 | document_scheme = document.get('documentScheme') | 
| 108 | data_source = document.get('dataSource') | 108 | data_source = document.get('dataSource') | 
| 109 | document_name = document.get('documentName') | ||
| 109 | try: | 110 | try: | 
| 110 | # 1. 上传信息记录 | 111 | # 1. 上传信息记录 | 
| 111 | UploadDocRecords.objects.create( | 112 | UploadDocRecords.objects.create( | 
| ... | @@ -115,7 +116,7 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -115,7 +116,7 @@ class UploadDocView(GenericView, DocHandler): | 
| 115 | co_applicant=applicant_data.get('coApplicantName'), | 116 | co_applicant=applicant_data.get('coApplicantName'), | 
| 116 | guarantor_1=applicant_data.get('guarantor1Name'), | 117 | guarantor_1=applicant_data.get('guarantor1Name'), | 
| 117 | guarantor_2=applicant_data.get('guarantor2Name'), | 118 | guarantor_2=applicant_data.get('guarantor2Name'), | 
| 118 | document_name=document.get('documentName'), | 119 | document_name=document_name, | 
| 119 | document_scheme=document_scheme, | 120 | document_scheme=document_scheme, | 
| 120 | business_type=business_type, | 121 | business_type=business_type, | 
| 121 | data_source=data_source, | 122 | data_source=data_source, | 
| ... | @@ -125,6 +126,12 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -125,6 +126,12 @@ class UploadDocView(GenericView, DocHandler): | 
| 125 | self.running_log.info('[doc upload fail] [args={0}] [err={1}]'.format(args, e)) | 126 | self.running_log.info('[doc upload fail] [args={0}] [err={1}]'.format(args, e)) | 
| 126 | self.invalid_params(msg='metadataVersionId repeat') | 127 | self.invalid_params(msg='metadataVersionId repeat') | 
| 127 | else: | 128 | else: | 
| 129 | data_source = self.fix_data_source(data_source) | ||
| 130 | if data_source == consts.DATA_SOURCE_LIST[1]: | ||
| 131 | if isinstance(document_name, str): | ||
| 132 | if document_name.endswith('-证书.pdf') or document_name.endswith('-证书'): | ||
| 133 | self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) | ||
| 134 | return response.ok() | ||
| 128 | # 2. 根据业务类型分库存储 | 135 | # 2. 根据业务类型分库存储 | 
| 129 | doc_class, prefix = self.get_doc_class(business_type) | 136 | doc_class, prefix = self.get_doc_class(business_type) | 
| 130 | doc = doc_class.objects.create( | 137 | doc = doc_class.objects.create( | ... | ... | 
- 
Please register or sign in to post a comment