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 的一致性
This commit is contained in:
parent
9641c66751
commit
39c4147b71
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:
|
if loginurl['account'] is not None:
|
||||||
return session, True,loginurl['account']['id']
|
return session, True,loginurl['account']['id']
|
||||||
else:
|
else:
|
||||||
return session, False
|
return session, False,None
|
||||||
except BaseException:
|
except BaseException:
|
||||||
return session, False,None
|
return session, False,None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue