fix alipan

This commit is contained in:
jxxghp
2024-11-20 20:39:48 +08:00
parent ad8f687f8e
commit 81fecf1e07
2 changed files with 8 additions and 6 deletions
+2 -4
View File
@@ -40,20 +40,18 @@ class U115Pan(StorageBase, metaclass=Singleton):
super().__init__()
self.init_storage()
def init_storage(self) -> bool:
def init_storage(self):
"""
初始化Cloud
"""
if not self.__credential:
return False
return
try:
self.client = P115Client(self.__credential, app="alipaymini",
check_for_relogin=True, console_qrcode=False)
except Exception as err:
logger.error(f"115连接失败,请重新登录:{str(err)}")
self.__clear_credential()
return False
return True
@property
def __credential(self) -> Optional[str]: