mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(cloud_music): 修复登录时的账户信息获取
- 在 login 函数中,当登录失败时返回 None 作为 account_id- 保持了与成功登录时返回 account_id 的一致性
(cherry picked from commit 39c4147b71)
This commit is contained in:
parent
f81ba8e46b
commit
5677ba2a82
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ async def netease_cloud_music_is_login(session):
|
|||
if loginurl['account'] is not None:
|
||||
return session, True,loginurl['account']['id']
|
||||
else:
|
||||
return session, False
|
||||
return session, False,None
|
||||
except BaseException:
|
||||
return session, False,None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue