mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-30 04:23:41 +08:00
23 lines
450 B
JavaScript
23 lines
450 B
JavaScript
|
// 智能播放
|
||
|
|
||
|
module.exports = (query, request) => {
|
||
|
const data = {
|
||
|
songId: query.id,
|
||
|
type: 'fromPlayOne',
|
||
|
playlistId: query.pid,
|
||
|
startMusicId: query.sid || query.id,
|
||
|
count: query.count || 1,
|
||
|
};
|
||
|
return request(
|
||
|
'POST',
|
||
|
`https://music.163.com/weapi/playmode/intelligence/list`,
|
||
|
data,
|
||
|
{
|
||
|
crypto: 'weapi',
|
||
|
cookie: query.cookie,
|
||
|
proxy: query.proxy,
|
||
|
realIP: query.realIP,
|
||
|
},
|
||
|
);
|
||
|
};
|