feat: 新增webdav存储

This commit is contained in:
Lan
2025-02-09 20:25:23 +08:00
parent 0add20e722
commit 037949b715
20 changed files with 281 additions and 82 deletions
+5 -1
View File
@@ -135,4 +135,8 @@ async def download_file(key: str, code: str, ip: str = Depends(ip_limit['error']
if not has:
return APIResponse(code=404, detail='文件不存在')
return APIResponse(detail=file_code.text) if file_code.text else await file_storage.get_file_response(file_code)
return (
APIResponse(detail=file_code.text)
if file_code.text
else await file_storage.get_file_response(file_code)
)