perf: 优化代码

pull/6535/head^2
feng626 2021-07-27 14:40:09 +08:00 committed by Jiangjie.Bai
parent 8611f765a3
commit d347ed9862
1 changed files with 1 additions and 1 deletions

View File

@ -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