feat: 增强Token禁用状态管理,区分失效与禁用

This commit is contained in:
TheSmallHanCat
2026-02-07 20:36:41 +08:00
parent 5a0ccbe2de
commit 29fddfa85b
6 changed files with 74 additions and 19 deletions

View File

@@ -249,7 +249,10 @@ async def get_tokens(token: str = Depends(verify_admin_token)) -> List[dict]:
"video_enabled": token.video_enabled,
# 并发限制
"image_concurrency": token.image_concurrency,
"video_concurrency": token.video_concurrency
"video_concurrency": token.video_concurrency,
# 过期和禁用信息
"is_expired": token.is_expired,
"disabled_reason": token.disabled_reason
})
return result