From 4d32b563caa1e58801574288d7f0480240d52f51 Mon Sep 17 00:00:00 2001 From: xiamuceer Date: Fri, 16 May 2025 12:08:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9auth=5Fkey=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E7=A0=81=E8=BF=9B=E8=A1=8C=E8=84=B1=E6=95=8F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/sources/wechatpadpro/wechatpadpro_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py b/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py index bc57958f8..159406236 100644 --- a/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +++ b/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py @@ -186,7 +186,7 @@ class WeChatPadProAdapter(Platform): and len(response_data["Data"]) > 0 ): self.auth_key = response_data["Data"][0] - logger.info(f"成功获取授权码: {self.auth_key}") + logger.info("成功获取授权码") else: logger.error( f"生成授权码成功但未找到授权码: {response_data}" @@ -307,7 +307,7 @@ class WeChatPadProAdapter(Platform): """ os.environ["no_proxy"] = f"localhost,127.0.0.1,{self.host}" ws_url = f"ws://{self.host}:{self.port}/ws/GetSyncMsg?key={self.auth_key}" - logger.info(f"正在连接 WebSocket: {ws_url}") + logger.info(f"正在连接 WebSocket: ws://{self.host}:{self.port}/ws/GetSyncMsg?key=***") while True: try: async with websockets.connect(ws_url) as websocket: