mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(cloud_music): 修复登录逻辑
- 移除了多余的 print 语句
- 添加了 break 语句以正确处理登录失败情况
(cherry picked from commit fcc8468984)
This commit is contained in:
parent
bb58ca3854
commit
d485a2f8ed
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ async def handle_function(msg: MessageEvent):
|
||||||
print('已确认,登入成功!')
|
print('已确认,登入成功!')
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print('其他:', code)
|
break;
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
with open('cloud_music_cookies.cookie', 'wb') as f:
|
with open('cloud_music_cookies.cookie', 'wb') as f:
|
||||||
pickle.dump(session.cookies, f)
|
pickle.dump(session.cookies, f)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue