From b9befc835030849e8c5aa294c244ff85bf94f7a9 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Tue, 6 Jul 2021 21:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20remove=20print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py | 6 ------ .../nonebot/adapters/feishu/message.py | 1 - 2 files changed, 7 deletions(-) diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py index 255f4747..a8dbc6cf 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py @@ -164,8 +164,6 @@ class Bot(BaseBot): 处理事件并转换为 `Event <#class-event>`_ """ data = json.loads(message) - print("handle_event start") - print(data) if data.get("type") == "url_verification": return @@ -233,16 +231,12 @@ class Bot(BaseBot): "Authorization"] = "Bearer " + self.feishu_config.tenant_access_token try: - print("call_api request start") - print(data) async with httpx.AsyncClient(headers=headers) as client: response = await client.post( self.api_root + api, json=data["body"], params=data["query"], timeout=self.config.api_timeout) - print("remote server returned.") - print(response.json()) if 200 <= response.status_code < 300: result = response.json() return _handle_api_result(result) diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/message.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/message.py index 111b9ce0..624baefd 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/message.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/message.py @@ -199,7 +199,6 @@ class MessageDeserializer: data: Dict[str, Any] def deserialize(self) -> Message: - print(self.type, self.data) if self.type == "post": return Message(self._parse_rich_text(self.data)) else: