diff --git a/app/core/plugin.py b/app/core/plugin.py index cfba6487..b9560075 100644 --- a/app/core/plugin.py +++ b/app/core/plugin.py @@ -35,8 +35,6 @@ class PluginManager(metaclass=Singleton): self.siteshelper = SitesHelper() self.pluginhelper = PluginHelper() self.systemconfig = SystemConfigOper() - self.install_online_plugin() - self.init_config() def init_config(self): # 停止已有插件 diff --git a/app/main.py b/app/main.py index c95ac560..c4f543d4 100644 --- a/app/main.py +++ b/app/main.py @@ -195,8 +195,10 @@ def start_module(): ResourceHelper() # 加载模块 ModuleManager() + # 安装在线插件 + PluginManager().install_online_plugin() # 加载插件 - PluginManager() + PluginManager().start() # 启动定时服务 Scheduler() # 启动事件消费