a89c8e28 by 冯轩

MOD:bug

1 parent fe02ac2d
...@@ -1895,12 +1895,12 @@ class GoView(GenericView): ...@@ -1895,12 +1895,12 @@ class GoView(GenericView):
1895 return response.error_msg(msg='识别错误') 1895 return response.error_msg(msg='识别错误')
1896 1896
1897 class InvoiceExcelView(GenericView): 1897 class InvoiceExcelView(GenericView):
1898 permission_classes = [IsAuthenticated] 1898 #permission_classes = [IsAuthenticated]
1899 authentication_classes = [OAuth2AuthenticationWithUser] 1899 #authentication_classes = [OAuth2AuthenticationWithUser]
1900 1900
1901 # 下载发票excel 1901 # 下载发票excel
1902 @use_args(invoice_download_args, location='data') 1902 @use_args(invoice_download_args, location='querystring')
1903 def post(self, request, args): 1903 def get(self, request, args):
1904 application_ids = args.get('application_ids') 1904 application_ids = args.get('application_ids')
1905 application_entity = args.get('application_entity') 1905 application_entity = args.get('application_entity')
1906 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333')) 1906 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333'))
...@@ -1941,11 +1941,11 @@ class InvoiceExcelView(GenericView): ...@@ -1941,11 +1941,11 @@ class InvoiceExcelView(GenericView):
1941 url, json.dumps(body), traceback.format_exc())) 1941 url, json.dumps(body), traceback.format_exc()))
1942 1942
1943 class InvoiceQueryInfoView(GenericView): 1943 class InvoiceQueryInfoView(GenericView):
1944 permission_classes = [IsAuthenticated] 1944 #permission_classes = [IsAuthenticated]
1945 authentication_classes = [OAuth2AuthenticationWithUser] 1945 #authentication_classes = [OAuth2AuthenticationWithUser]
1946 1946
1947 @use_args(invoice_download_args, location='data') 1947 @use_args(invoice_download_args, location='querystring')
1948 def post(self, request, args): 1948 def get(self, request, args):
1949 application_ids = args.get('application_ids') 1949 application_ids = args.get('application_ids')
1950 application_entity = args.get('application_entity') 1950 application_entity = args.get('application_entity')
1951 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333')) 1951 self.running_log.info('[InvoiceExcelView] [user_role={0}] '.format('111222333'))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!