From 9412c5d42d481a4fe5e5bc8be209df2728152fba Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 29 Nov 2022 14:45:29 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20connect=20token=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/api/connection_token.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/authentication/api/connection_token.py b/apps/authentication/api/connection_token.py index b8f461d52..3639206d3 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -140,7 +140,7 @@ class RDPFileClientProtocolURLMixin: data = { 'id': str(token.id), 'value': token.value, - 'cmd': '', + 'command': '', 'file': {} } @@ -148,14 +148,14 @@ class RDPFileClientProtocolURLMixin: filename, content = self.get_rdp_file_info(token) data.update({ 'file': { - 'filename': filename, + 'name': filename, 'content': content, } }) else: endpoint = self.get_smart_endpoint(protocol=token.endpoint_protocol, asset=token.asset) cmd = NativeClient.get_launch_command(connect_method, token, endpoint) - data.update({'cmd': cmd}) + data.update({'command': cmd}) return data def get_smart_endpoint(self, protocol, asset=None):