9eaa8ba9 by 冯轩

test

1 parent 629427cf
......@@ -12,5 +12,6 @@ urlpatterns = [
path(r'contract/v1', views.SEContractView.as_view()),
path(r'reocr', views.DocReOcrView.as_view()),
path(r'batch/reocr', views.BatchReOcrView.as_view()),
path(r'test', views.TestView.as_view()),
]
......
......@@ -2081,11 +2081,7 @@ class InvoiceQueryInfoView(GenericView):
self.running_log.error("invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}".format(
url, json.dumps(body), traceback.format_exc()))
class DocReOcrView(GenericView, DocHandler):
# permission_classes = [IsAuthenticated]
# authentication_classes = [OAuth2AuthenticationWithUser]
# required_scopes = ['write']
class DocReOcrView(GenericView):
# 现有文件重新识别接口
@use_args(doc_reocr_args, location='data')
......@@ -2195,4 +2191,14 @@ class BatchReOcrView(GenericView, DocHandler):
'[is_priority={3}] [enqueue_res={4}] [classify_1={5}]'.format(args, prefix, doc.id,
is_priority, enqueue_res, classify_1))
return response.ok()
class TestView(GenericView):
@use_args(invoice_download_args, location='data')
def post(self, request, args):
application_ids = args.get('application_ids')
application_entity = args.get('application_entity')
self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333'))
return response.ok()
\ No newline at end of file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!