ba2eed6d by 冯轩

Merge branch 'feature/portal-reocr' into feature/uat-tmp

2 parents 715416ce c61eec7f
......@@ -2304,6 +2304,9 @@ class DocReOcrView(GenericView, DocHandler):
if doc.application_id.startswith(consts.FIXED_APPLICATION_ID_PREFIX):
self.running_log.info('[doc re-ocr fail not support CH-S] [application_entity={0}] [doc_id={1}]'.format(application_entity, doc_id))
return response.error_msg('模拟下单的文件不支持重新识别')
if doc.status != DocStatus.PROCESS_FAILED.value:
self.running_log.info('[doc re-ocr fail not support status] [application_entity={0}] [doc_id={1}]'.format(application_entity, doc_id))
return response.error_msg('不支持的文件状态')
# 3. 选择队列进入
is_priority = PriorityApplication.objects.filter(application_id=doc.application_id, on_off=True).exists()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!