🐛 WebUI初始化逻辑修改 (#1574)

This commit is contained in:
AkashiCoin
2024-08-26 10:38:42 +08:00
committed by GitHub
parent 69f09b92d3
commit 65a6f608e6
2 changed files with 9 additions and 14 deletions
-14
View File
@@ -1,21 +1,7 @@
import nonebot
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel
from strenum import StrEnum
app = nonebot.get_app()
origins = ["*"]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
AVA_URL = "http://q1.qlogo.cn/g?b=qq&nk={}&s=160"
GROUP_AVA_URL = "http://p.qlogo.cn/gh/{}/{}/640/"