From 3d1f70b4428572970acdc9f025be45eb49cafc1c Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 15 Apr 2025 14:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/kid_photo_extractor/__init__.py | 12 ++++++------ plugins/kid_photo_extractor/main.py | 6 ++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/plugins/kid_photo_extractor/__init__.py b/plugins/kid_photo_extractor/__init__.py index 0d2af41..7e76961 100644 --- a/plugins/kid_photo_extractor/__init__.py +++ b/plugins/kid_photo_extractor/__init__.py @@ -1,7 +1,7 @@ -# 从当前包的main模块导入KidPhotoExtractorPlugin类 -from .main import KidPhotoExtractorPlugin +# # 从当前包的main模块导入KidPhotoExtractorPlugin类 +# from .main import KidPhotoExtractorPlugin -# 提供get_plugin函数,返回插件实例 -def get_plugin(): - """获取插件实例""" - return KidPhotoExtractorPlugin() \ No newline at end of file +# # 提供get_plugin函数,返回插件实例 +# def get_plugin(): +# """获取插件实例""" +# return KidPhotoExtractorPlugin() \ No newline at end of file diff --git a/plugins/kid_photo_extractor/main.py b/plugins/kid_photo_extractor/main.py index da53210..8c9d976 100644 --- a/plugins/kid_photo_extractor/main.py +++ b/plugins/kid_photo_extractor/main.py @@ -414,8 +414,10 @@ class KidPhotoExtractorPlugin(MessagePluginInterface): def start(self) -> bool: """启动插件""" - self.LOG.info(f"[{self.name}] 插件已启动") - self.status = PluginStatus.RUNNING + if self.enable: + self.LOG.info(f"[{self.name}] 插件已启动") + self.status = PluginStatus.RUNNING + return False return True def stop(self) -> bool: