Skip to content

Commit

Permalink
revert: fix: 修复引入账号池后导致的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Jan 5, 2024
1 parent 1690c96 commit 20696ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/kg/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions modules/kg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

0 comments on commit 20696ea

Please sign in to comment.