This commit is contained in:
2026-08-18 16:13:07 +08:00
parent efcbc49096
commit 4de893ca94
12 changed files with 906 additions and 506 deletions
+4 -3
View File
@@ -1,19 +1,20 @@
import time
from typing import Annotated
from redis import Redis
from sqlalchemy.orm import Session
from redis.asyncio import Redis as AsyncRedis
from fastapi import Depends, Header
from api.core.exception import ResponseException
from core.character.adventure import get_adv_info
from database.connect import get_db, get_redis
from database.connect import get_async_redis, get_redis
from api.core.Auth import AlterState
import base64
import json
from api.core.Redis import get_redis_info
SessionDep = Annotated[Session, Depends(get_db)]
RedisDep = Annotated[Redis, Depends(get_redis)]
AsyncRedisDep = Annotated[AsyncRedis, Depends(get_async_redis)]
def alterToken(redis: RedisDep, alter_token: str | None = Header(None)):