From d347ed98628f0ff71cb857ee6ee6d2fd5b6386bd Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 27 Jul 2021 14:40:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/api/connection_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/api/connection_token.py b/apps/authentication/api/connection_token.py index 55ccc0c76..b3b4abdad 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -174,7 +174,7 @@ class UserConnectionTokenViewSet(RootOrgViewMixin, SerializerMixin, GenericViewS @action(methods=['POST', 'GET'], detail=False, url_path='rdp/rouse', permission_classes=[IsValidUser]) def get_rdp_rouse(self, request, *args, **kwargs): - _, data = self.create_rdp_file() + data = self.create_rdp_file()[1] return Response(data=dict(data=base64.b64encode(data.encode()))) @staticmethod