From 30683ed859784d77d99b0d142a01216c2c16c062 Mon Sep 17 00:00:00 2001 From: halo Date: Tue, 7 Nov 2023 14:46:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=B6=85=E9=95=BF=EF=BC=8C=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E6=8B=89=E8=B5=B7=E6=97=A0=E5=93=8D=E5=BA=94=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= 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 a78a36512..954fb6074 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -155,7 +155,7 @@ class RDPFileClientProtocolURLMixin: account = token.account or token.input_username datetime = timezone.localtime(timezone.now()).strftime('%Y-%m-%d_%H:%M:%S') - name = account + '@' + str(asset) + '[' + datetime + ']' + name = account + '@' + asset.name + '[' + datetime + ']' data = { 'version': 2, 'id': str(token.id), # 兼容老的,未来几个版本删掉