mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
parent
d73effd34a
commit
f268e7b870
20
module/listentogether_end.js
Normal file
20
module/listentogether_end.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 一起听 结束房间
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/end/v2`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/end/v2'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
23
module/listentogether_heatbeat.js
Normal file
23
module/listentogether_heatbeat.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// 一起听 发送心跳
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId,
|
||||||
|
songId: query.songId,
|
||||||
|
playStatus: query.playStatus,
|
||||||
|
progress: query.progress
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/heartbeat`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/heartbeat'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
28
module/listentogether_play_command.js
Normal file
28
module/listentogether_play_command.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
// 一起听 发送播放状态
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId,
|
||||||
|
commandInfo: {
|
||||||
|
commandType: query.commandType,
|
||||||
|
progress: query.progress || 0,
|
||||||
|
playStatus: query.playStatus,
|
||||||
|
formerSongId: query.formerSongId,
|
||||||
|
targetSongId: query.targetSongId,
|
||||||
|
clientSeq: query.clientSeq
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/play/command/report`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/play/command/report'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
20
module/listentogether_room_check.js
Normal file
20
module/listentogether_room_check.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 一起听 房间情况
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/room/check`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/room/check'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
20
module/listentogether_room_create.js
Normal file
20
module/listentogether_room_create.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 一起听创建房间
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
refer: 'songplay_more'
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/room/create`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/room/create'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
33
module/listentogether_sync_list_command.js
Normal file
33
module/listentogether_sync_list_command.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
// 一起听 更新播放列表
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId,
|
||||||
|
playlistParam: JSON.stringify({
|
||||||
|
commandType: query.commandType,
|
||||||
|
version: [
|
||||||
|
{
|
||||||
|
userId: query.userId,
|
||||||
|
version: query.version
|
||||||
|
}
|
||||||
|
],
|
||||||
|
anchorSongId: '',
|
||||||
|
anchorPosition: -1,
|
||||||
|
randomList: query.randomList.split(','),
|
||||||
|
displayList: query.displayList.split(',')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/sync/list/command/report`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/sync/list/command/report'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
20
module/listentogether_sync_playlist_get.js
Normal file
20
module/listentogether_sync_playlist_get.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 一起听 当前列表获取
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
roomId: query.roomId
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`http://interface.music.163.com/eapi/listen/together/sync/playlist/get`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/listen/together/sync/playlist/get'
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user