revert: fix: 修复引入账号池后导致的bug

This commit is contained in:
helloplhm-qwq 2024-01-05 19:23:19 +08:00
parent 1690c9600c
commit 20696eaa9d
No known key found for this signature in database
GPG Key ID: 6BE1B64B905567C7
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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'])