9eaa8ba9 by 冯轩

test

1 parent 629427cf
...@@ -12,5 +12,6 @@ urlpatterns = [ ...@@ -12,5 +12,6 @@ urlpatterns = [
12 path(r'contract/v1', views.SEContractView.as_view()), 12 path(r'contract/v1', views.SEContractView.as_view()),
13 path(r'reocr', views.DocReOcrView.as_view()), 13 path(r'reocr', views.DocReOcrView.as_view()),
14 path(r'batch/reocr', views.BatchReOcrView.as_view()), 14 path(r'batch/reocr', views.BatchReOcrView.as_view()),
15 path(r'test', views.TestView.as_view()),
15 16
16 ] 17 ]
......
...@@ -2081,11 +2081,7 @@ class InvoiceQueryInfoView(GenericView): ...@@ -2081,11 +2081,7 @@ class InvoiceQueryInfoView(GenericView):
2081 self.running_log.error("invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}".format( 2081 self.running_log.error("invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}".format(
2082 url, json.dumps(body), traceback.format_exc())) 2082 url, json.dumps(body), traceback.format_exc()))
2083 2083
2084 class DocReOcrView(GenericView, DocHandler): 2084 class DocReOcrView(GenericView):
2085 # permission_classes = [IsAuthenticated]
2086 # authentication_classes = [OAuth2AuthenticationWithUser]
2087
2088 # required_scopes = ['write']
2089 2085
2090 # 现有文件重新识别接口 2086 # 现有文件重新识别接口
2091 @use_args(doc_reocr_args, location='data') 2087 @use_args(doc_reocr_args, location='data')
...@@ -2196,3 +2192,13 @@ class BatchReOcrView(GenericView, DocHandler): ...@@ -2196,3 +2192,13 @@ class BatchReOcrView(GenericView, DocHandler):
2196 is_priority, enqueue_res, classify_1)) 2192 is_priority, enqueue_res, classify_1))
2197 2193
2198 return response.ok() 2194 return response.ok()
2195
2196 class TestView(GenericView):
2197
2198 @use_args(invoice_download_args, location='data')
2199 def post(self, request, args):
2200 application_ids = args.get('application_ids')
2201 application_entity = args.get('application_entity')
2202 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333'))
2203
2204 return response.ok()
...\ No newline at end of file ...\ 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!