mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix 115
This commit is contained in:
@@ -71,6 +71,8 @@ class U115Pan(StorageBase, metaclass=Singleton):
|
||||
"""
|
||||
生成二维码
|
||||
"""
|
||||
if not self.__init_cloud():
|
||||
return None
|
||||
try:
|
||||
resp = self.client.login_qrcode_token()
|
||||
self.session_info = resp["data"]
|
||||
@@ -89,9 +91,9 @@ class U115Pan(StorageBase, metaclass=Singleton):
|
||||
"""
|
||||
二维码登录确认
|
||||
"""
|
||||
if not self.session_info:
|
||||
return {}, "请先生成二维码!"
|
||||
try:
|
||||
if not self.session_info:
|
||||
return {}, "请先生成二维码!"
|
||||
resp = self.client.login_qrcode_scan_status(self.session_info)
|
||||
match resp["data"].get("status"):
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user