From 73ce0ec202a58ab66bc7f90af11483891cf87777 Mon Sep 17 00:00:00 2001 From: thsrite Date: Tue, 23 Apr 2024 12:45:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=9A=84service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/pluginautoupdate/__init__.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/plugins/pluginautoupdate/__init__.py b/plugins/pluginautoupdate/__init__.py index 011874d..313b63b 100644 --- a/plugins/pluginautoupdate/__init__.py +++ b/plugins/pluginautoupdate/__init__.py @@ -253,27 +253,6 @@ class PluginAutoUpdate(_PluginBase): } }] - def get_service(self) -> List[Dict[str, Any]]: - """ - 注册插件公共服务 - [{ - "id": "服务ID", - "name": "服务名称", - "trigger": "触发器:cron/interval/date/CronTrigger.from_crontab()", - "func": self.xxx, - "kwargs": {} # 定时器参数 - }] - """ - if self._enabled and self._cron: - return [{ - "id": "PluginAutoUpdate", - "name": "插件自动更新", - "trigger": CronTrigger.from_crontab(self._cron), - "func": self.plugin_update, - "kwargs": {} - }] - return [] - def get_api(self) -> List[Dict[str, Any]]: pass