638c78ea by 冯轩

MOD:模拟下单电子合同先判断是不是模拟单

1 parent 97574eac
......@@ -1458,15 +1458,20 @@ class Command(BaseCommand, LoggerMixin):
# pdf下载 处理 图片存储 识别
for times in range(consts.RETRY_TIMES):
try:
self.edms.download(pdf_path, doc.metadata_version_id, doc.document_scheme, business_type)
self.online_log.info('{0} [edms download success] [task={1}] [times={2}] '
'[pdf_path={3}]'.format(self.e_log_base, task_str, times, pdf_path))
self.online_log.info('{0} [pdf to img start] [task={1}] [times={2}]'.format(
self.e_log_base, task_str, times))
pdf_handler.e_contract_process()
self.online_log.info(
'{0} [pdf to img end] [task={1}] [times={2}]'.format(self.e_log_base, task_str, times))
if doc.application_id.startswith(consts.FIXED_APPLICATION_ID_PREFIX):
self.online_log.info('{0} [mo ni xia dan] [task={1}] [times={2}] '
'[pdf_path={3}]'.format(self.log_base, task_str,
times, pdf_path))
else:
self.edms.download(pdf_path, doc.metadata_version_id, doc.document_scheme, business_type)
self.online_log.info('{0} [edms download success] [task={1}] [times={2}] '
'[pdf_path={3}]'.format(self.e_log_base, task_str, times, pdf_path))
self.online_log.info('{0} [pdf to img start] [task={1}] [times={2}]'.format(
self.e_log_base, task_str, times))
pdf_handler.e_contract_process()
self.online_log.info(
'{0} [pdf to img end] [task={1}] [times={2}]'.format(self.e_log_base, task_str, times))
except Exception as e:
self.online_log.warn('{0} [download or pdf to img failed] [task={1}] [times={2}] '
'[error={3}]'.format(self.e_log_base, task_str, times,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!