mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(cloud_music): 修复csrf_token为None时的返回值问题
chore(requirements): 移除重复的Crypto依赖
This commit is contained in:
parent
4d8ac00bfb
commit
72ab72071c
2 changed files with 1 additions and 3 deletions
|
|
@ -11,9 +11,7 @@ sqlalchemy
|
|||
selenium
|
||||
autopep8
|
||||
graiax-silkcoder[ffmpeg]
|
||||
Crypto
|
||||
graiax-silkcoder
|
||||
Crypto
|
||||
fake_useragent
|
||||
pycryptodome
|
||||
PyExecJS
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ async def netease_cloud_music_is_login(session):
|
|||
pass
|
||||
csrf_token = session.cookies.get('__csrf')
|
||||
if csrf_token is None:
|
||||
return session, False
|
||||
return session, False,None
|
||||
else:
|
||||
try:
|
||||
loginurl = session.post(f'https://music.163.com/weapi/w/nuser/account/get?csrf_token={csrf_token}',data={'params': login_params(None), 'encSecKey': login_encSecKey()}, headers=headers).json()
|
||||
|
|
|
|||
Loading…
Reference in a new issue