86f573ce by 冯轩

MOD:压缩包微信流水

1 parent 872ee58a
......@@ -1287,7 +1287,10 @@ class Command(BaseCommand, LoggerMixin):
target_pdf_path = os.path.join(pdf_doc_data_path, '{0}.pdf'.format(pdf_doc.id))
shutil.move(pdf_path, target_pdf_path)
pdf_task_str = consts.SPLIT_STR.join([business_type, str(pdf_doc.id), '0'])
if '微信支付交易明细证明' in os.path.basename(pdf_path) or '微信流水' in os.path.basename(pdf_path):
pdf_task_str = consts.SPLIT_STR.join([business_type, str(pdf_doc.id), '12'])
else:
pdf_task_str = consts.SPLIT_STR.join([business_type, str(pdf_doc.id), '0'])
pdf_task_str_list.append(pdf_task_str)
except Exception as e:
self.online_log.warn('{0} [zip_2_pdfs] [recreate pdf task failed] [task={1}] [pdf_path={2}]'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!