From 3c95156ce1467b25fe36776913aa88d55b19619d Mon Sep 17 00:00:00 2001 From: WingGao Date: Sat, 22 Feb 2025 15:05:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20alist=E4=B8=8D=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=A4=B1=E8=B4=A5=E7=9A=84=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/filemanager/storages/alist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filemanager/storages/alist.py b/app/modules/filemanager/storages/alist.py index a26dd812..7f563db9 100644 --- a/app/modules/filemanager/storages/alist.py +++ b/app/modules/filemanager/storages/alist.py @@ -67,7 +67,7 @@ class Alist(StorageBase, metaclass=Singleton): return self.__generate_token @property - @cached(maxsize=1, ttl=60 * 60 * 24 * 2 - 60 * 5) + @cached(maxsize=1, ttl=60 * 60 * 24 * 2 - 60 * 5, skip_empty=True) def __generate_token(self) -> str: """ 如果设置永久令牌则返回永久令牌,否则使用账号密码生成一个临时 token