From 2cc67634a40ebdbf57b48d238335b76988f6f183 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 22 Apr 2024 16:29:29 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=91=E5=B8=83=E6=9C=BA=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=B9=B3=E5=8F=B0=E8=BF=9E=E6=8E=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/models/connection_token.py | 2 ++ apps/authentication/serializers/connect_token_secret.py | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/authentication/models/connection_token.py b/apps/authentication/models/connection_token.py index f07874a2a..07fd6483b 100644 --- a/apps/authentication/models/connection_token.py +++ b/apps/authentication/models/connection_token.py @@ -204,12 +204,14 @@ class ConnectionToken(JMSOrgBaseModel): host, account, lock_key = bulk_get(host_account, ('host', 'account', 'lock_key')) gateway = host.domain.select_gateway() if host.domain else None + platform = host.platform data = { 'id': lock_key, 'applet': applet, 'host': host, 'gateway': gateway, + 'platform': platform, 'account': account, 'remote_app_option': self.get_remote_app_option() } diff --git a/apps/authentication/serializers/connect_token_secret.py b/apps/authentication/serializers/connect_token_secret.py index 3eea79e4e..500daa410 100644 --- a/apps/authentication/serializers/connect_token_secret.py +++ b/apps/authentication/serializers/connect_token_secret.py @@ -161,6 +161,7 @@ class ConnectTokenAppletOptionSerializer(serializers.Serializer): host = _ConnectionTokenAssetSerializer(read_only=True) account = _ConnectionTokenAccountSerializer(read_only=True) gateway = _ConnectionTokenGatewaySerializer(read_only=True) + platform = _ConnectionTokenPlatformSerializer(read_only=True) remote_app_option = serializers.JSONField(read_only=True)