44a54f2c by 冯轩

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

2 parents e6de9f63 9eaa8ba9
...@@ -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 ]
......
...@@ -2287,11 +2287,7 @@ class InvoiceQueryInfoView(GenericView): ...@@ -2287,11 +2287,7 @@ class InvoiceQueryInfoView(GenericView):
2287 self.running_log.error("invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}".format( 2287 self.running_log.error("invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}".format(
2288 url, json.dumps(body), traceback.format_exc())) 2288 url, json.dumps(body), traceback.format_exc()))
2289 2289
2290 class DocReOcrView(GenericView, DocHandler): 2290 class DocReOcrView(GenericView):
2291 # permission_classes = [IsAuthenticated]
2292 # authentication_classes = [OAuth2AuthenticationWithUser]
2293
2294 # required_scopes = ['write']
2295 2291
2296 # 现有文件重新识别接口 2292 # 现有文件重新识别接口
2297 @use_args(doc_reocr_args, location='data') 2293 @use_args(doc_reocr_args, location='data')
...@@ -2401,4 +2397,14 @@ class BatchReOcrView(GenericView, DocHandler): ...@@ -2401,4 +2397,14 @@ class BatchReOcrView(GenericView, DocHandler):
2401 '[is_priority={3}] [enqueue_res={4}] [classify_1={5}]'.format(args, prefix, doc.id, 2397 '[is_priority={3}] [enqueue_res={4}] [classify_1={5}]'.format(args, prefix, doc.id,
2402 is_priority, enqueue_res, classify_1)) 2398 is_priority, enqueue_res, classify_1))
2403 2399
2400 return response.ok()
2401
2402 class TestView(GenericView):
2403
2404 @use_args(invoice_download_args, location='data')
2405 def post(self, request, args):
2406 application_ids = args.get('application_ids')
2407 application_entity = args.get('application_entity')
2408 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333'))
2409
2404 return response.ok() 2410 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!