项目改造

This commit is contained in:
2026-09-03 15:44:57 +08:00
parent 24d7c64e17
commit 2849a6250c
60 changed files with 166 additions and 13754 deletions
@@ -1,6 +1,6 @@
"""插件配置(Web 管理后台)
"""插件配置(图片识别等运行时行为)。
env 变量名与字段名对应(大写):WEB_ENABLE / WEB_USERNAME / WEB_PASSWORD / WEB_SECRET_KEY
access 由统一 Web 管理台 /hub 提供,插件不再自持 Web 鉴权/开关。
"""
from nonebot import get_plugin_config
@@ -8,10 +8,6 @@ from pydantic import BaseModel
class Config(BaseModel):
web_enable: bool = True
web_username: str = "admin"
web_password: str = "galgame"
web_secret_key: str = "galgame-card-secret-key"
# 图片多模态识别(预留接口,当前未启用;将来接入后置 True)
image_vision_enabled: bool = False