Merge pull request #1670 from Raspberry-Monster/feat/api/cloudsearch

[feat] CloudSearch接口使用eapi代替weapi
This commit is contained in:
binaryify
2023-01-08 18:20:14 +08:00
committed by GitHub
+9 -3
View File
@@ -8,10 +8,16 @@ module.exports = (query, request) => {
offset: query.offset || 0, offset: query.offset || 0,
total: true, total: true,
} }
return request('POST', `https://music.163.com/api/cloudsearch/pc`, data, { return request(
crypto: 'weapi', 'POST',
`https://interface.music.163.com/eapi/cloudsearch/pc`,
data,
{
crypto: 'eapi',
cookie: query.cookie, cookie: query.cookie,
proxy: query.proxy, proxy: query.proxy,
url: '/api/cloudsearch/pc',
realIP: query.realIP, realIP: query.realIP,
}) },
)
} }