结构调整
视频解析多图/多媒体结构 消息体适配
This commit is contained in:
@@ -16,7 +16,7 @@ from .utils.war_renderer import render_war_briefing # noqa: F401
|
||||
from .utils import gen_ms_img, pic2b64 # noqa: F401
|
||||
from .services.equipment_store import init_db as _init_equipment_db
|
||||
from .web import stratagem_admin as _stratagem_admin
|
||||
from hexi.web_plugin_registry import register_web_plugin
|
||||
from hexi.web_hub.web_plugin_registry import register_web_plugin
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="绝地潜兵小助手",
|
||||
@@ -47,7 +47,7 @@ register_web_plugin(
|
||||
logger.info("战备管理 Web 插件已注册(/api/helldivers)")
|
||||
|
||||
# 统一配置标准:把 API 相关配置暴露给 Web 管理台(/hub 插件配置)
|
||||
from hexi.config_standard import register_model_config # noqa: E402
|
||||
from hexi.web_hub.config_standard import register_model_config # noqa: E402
|
||||
from .config import config as _hd2_config # noqa: E402
|
||||
|
||||
register_model_config(
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""战备管理 API:作为统一 Web 的一个模块,挂到 /api/helldivers。
|
||||
|
||||
- 不再自己出 HTML,页面由统一前端 (hexi/web) 渲染。
|
||||
- 鉴权统一走 hexi.web_auth(OAuth2 + SQLite)。
|
||||
- 鉴权统一走 hexi.web_hub.web_auth(OAuth2 + SQLite)。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -12,7 +12,7 @@ from pathlib import Path
|
||||
from fastapi import Depends, FastAPI, HTTPException, Request
|
||||
from fastapi.responses import FileResponse, JSONResponse
|
||||
|
||||
from hexi.web_auth import require_admin
|
||||
from hexi.web_hub.web_auth import require_admin
|
||||
|
||||
from ..services.equipment_store import (
|
||||
create_stratagem,
|
||||
|
||||
Reference in New Issue
Block a user