feat: 新增webdav存储

This commit is contained in:
Lan
2025-02-09 20:25:23 +08:00
parent 2e44fe29a4
commit 1cbe8d5f2a
20 changed files with 281 additions and 82 deletions
+2 -4
View File
@@ -7,9 +7,7 @@ import hashlib
import random
import string
import time
from apps.base.dependencies import IPRateLimit
from core.settings import settings
async def get_random_num():
"""
@@ -46,7 +44,7 @@ async def get_select_token(code: str):
:param code:
:return:
"""
token = "123456"
token = settings.admin_token
return hashlib.sha256(f"{code}{int(time.time() / 1000)}000{token}".encode()).hexdigest()