mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 23:51:23 +08:00
[fix/doc] 完善一起听 主机模式
This commit is contained in:
@@ -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',
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user