mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
revert: fix: 修复引入账号池后导致的bug
This commit is contained in:
parent
1690c9600c
commit
20696eaa9d
@ -47,7 +47,7 @@ async def url(songId, quality):
|
||||
'behavior': 'play',
|
||||
'clienttime': int(time.time()),
|
||||
'pid': 2,
|
||||
'key': getKey(thash),
|
||||
'key': getKey(thash, user_info),
|
||||
'dfid': '-',
|
||||
'pidversion': 3001
|
||||
}
|
||||
|
@ -57,5 +57,5 @@ async def signRequest(url, params, options, signkey = tools["signkey"]):
|
||||
url = url + "?" + buildRequestParams(params)
|
||||
return await Httpx.AsyncRequest(url, options)
|
||||
|
||||
def getKey(hash_):
|
||||
return utils.createMD5(hash_.lower() + tools.pidversec + tools.appid + tools.mid + tools.userid)
|
||||
def getKey(hash_, user_info):
|
||||
return utils.createMD5(hash_.lower() + tools.pidversec + tools.appid + user_info['mid'] + user_info['userid'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user