mirror of
https://github.com/TheSmallHanCat/sora2api.git
synced 2026-03-17 01:57:31 +08:00
feat: 增强Token禁用状态管理,区分失效与禁用
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user