This commit is contained in:
jxxghp
2025-07-31 08:11:27 +08:00
parent d382eab355
commit 67229fd032
3 changed files with 18 additions and 16 deletions

View File

@@ -1,12 +1,5 @@
import sys
from app.command import CommandChain
from app.core.cache import close_cache
from app.core.config import settings
from app.core.module import ModuleManager
from app.log import logger
from app.utils.system import SystemUtils
# SitesHelper涉及资源包拉取提前引入并容错提示
try:
from app.helper.sites import SitesHelper # noqa
@@ -16,16 +9,23 @@ except ImportError as e:
print(error_message, file=sys.stderr)
sys.exit(1)
from app.utils.system import SystemUtils
from app.log import logger
from app.core.config import settings
from app.core.cache import close_cache
from app.core.module import ModuleManager
from app.core.event import EventManager
from app.helper.thread import ThreadHelper
from app.helper.display import DisplayHelper
from app.helper.doh import DohHelper
from app.helper.resource import ResourceHelper
from app.helper.message import MessageHelper
from app.schemas import Notification, NotificationType
from app.schemas.types import SystemConfigKey
from app.helper.subscribe import SubscribeHelper
from app.db import close_database
from app.db.systemconfig_oper import SystemConfigOper
from app.command import CommandChain
from app.schemas import Notification, NotificationType
from app.schemas.types import SystemConfigKey
def start_frontend():
@@ -145,6 +145,8 @@ def init_modules():
ModuleManager()
# 启动事件消费
EventManager().start()
# 初始化订阅分享
SubscribeHelper()
# 启动前端服务
start_frontend()
# 检查认证状态