[fix/doc] 完善一起听 主机模式

This commit is contained in:
kengwang
2023-01-16 15:23:44 +08:00
parent 51e1e3b6f9
commit 6a6c6e3dea
3 changed files with 277 additions and 28 deletions
+27 -28
View File
@@ -1,28 +1,27 @@
// 一起听 发送播放状态
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'
},
)
}
// 一起听 发送播放状态
module.exports = (query, request) => {
const data = {
roomId: query.roomId,
commandInfo: JSON.stringify({
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',
},
)
}