- 修复了订阅文件信息显示问题
- 修复了默认通知模板格式中季号的显示问题
- 修复了原始语言图片刮削的问题
- 修复了馒头新版标签无法识别的问题
- 优化了联邦插件API的注册
This commit is contained in:
jxxghp
2025-05-14 09:16:12 +08:00
parent 1a8e0c9ecb
commit 21e5cb0a03
6 changed files with 19 additions and 14 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
from command import Command from app.command import Command
def init_command(): def init_command():
@@ -7,14 +7,16 @@ def init_command():
""" """
Command() Command()
def stop_command(): def stop_command():
""" """
停止命令 停止命令
""" """
pass pass
def restart_command(): def restart_command():
""" """
重启命令 重启命令
""" """
Command().init_commands() Command().init_commands()
+7 -7
View File
@@ -3,14 +3,14 @@ from contextlib import asynccontextmanager
from fastapi import FastAPI from fastapi import FastAPI
from core.config import global_vars from app.core.config import global_vars
from app.startup.workflow_initializer import init_workflow, stop_workflow from app.startup.command_initializer import init_command, stop_command, restart_command
from app.startup.modules_initializer import init_modules, stop_modules from app.startup.modules_initializer import init_modules, stop_modules
from app.startup.monitor_initializer import stop_monitor, init_monitor
from app.startup.plugins_initializer import init_plugins, stop_plugins, sync_plugins from app.startup.plugins_initializer import init_plugins, stop_plugins, sync_plugins
from app.startup.routers_initializer import init_routers from app.startup.routers_initializer import init_routers
from app.startup.command_initializer import init_command, stop_command, restart_command from app.startup.scheduler_initializer import stop_scheduler, init_scheduler, init_plugin_scheduler
from app.startup.monitor_initializer import stop_monitor, init_monitor from app.startup.workflow_initializer import init_workflow, stop_workflow
from app.startup.scheduler_initializer import stop_scheduler, init_scheduler, restart_scheduler, init_plugin_scheduler
async def init_plugin_system(): async def init_plugin_system():
@@ -62,13 +62,13 @@ async def lifespan(app: FastAPI):
print(str(e)) print(str(e))
# 停止插件 # 停止插件
stop_plugins() stop_plugins()
# 停止工作流
stop_workflow()
# 停止命令 # 停止命令
stop_command() stop_command()
# 停止监控器 # 停止监控器
stop_monitor() stop_monitor()
# 停止定时器 # 停止定时器
stop_scheduler() stop_scheduler()
# 停止工作流
stop_workflow()
# 停止模块 # 停止模块
stop_modules() stop_modules()
+1 -1
View File
@@ -5,7 +5,7 @@ from app.core.config import settings
from app.core.module import ModuleManager from app.core.module import ModuleManager
from app.log import logger from app.log import logger
from app.utils.system import SystemUtils from app.utils.system import SystemUtils
from command import CommandChain from app.command import CommandChain
# SitesHelper涉及资源包拉取,提前引入并容错提示 # SitesHelper涉及资源包拉取,提前引入并容错提示
try: try:
+1 -1
View File
@@ -1,4 +1,4 @@
from monitor import Monitor from app.monitor import Monitor
def init_monitor(): def init_monitor():
+4 -1
View File
@@ -1,4 +1,4 @@
from scheduler import Scheduler from app.scheduler import Scheduler
def init_scheduler(): def init_scheduler():
@@ -7,18 +7,21 @@ def init_scheduler():
""" """
Scheduler() Scheduler()
def stop_scheduler(): def stop_scheduler():
""" """
停止定时器 停止定时器
""" """
Scheduler().stop() Scheduler().stop()
def restart_scheduler(): def restart_scheduler():
""" """
重启定时器 重启定时器
""" """
Scheduler().init() Scheduler().init()
def init_plugin_scheduler(): def init_plugin_scheduler():
""" """
初始化插件定时器 初始化插件定时器
+2 -2
View File
@@ -1,2 +1,2 @@
APP_VERSION = 'v2.4.6' APP_VERSION = 'v2.4.7'
FRONTEND_VERSION = 'v2.4.6' FRONTEND_VERSION = 'v2.4.7'