From f73d69e814053c55841e5eeecd11f684409ccddd Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Thu, 15 Feb 2024 16:12:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=E6=9C=AA=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E9=80=82=E9=85=8D=E5=99=A8=E6=97=B6=E7=9A=84=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/platform/manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/platform/manager.py b/pkg/platform/manager.py index 139e6356..3d73c198 100644 --- a/pkg/platform/manager.py +++ b/pkg/platform/manager.py @@ -142,6 +142,9 @@ class PlatformManager: if not found: raise Exception('platform.json 中启用了未知的平台适配器: ' + adapter_name) + + if len(self.adapters) == 0: + self.ap.logger.warning('未运行平台适配器,请根据文档配置并启用平台适配器。') async def send(self, event, msg, adapter: msadapter.MessageSourceAdapter, check_quote=True, check_at_sender=True):