DEBUG
This commit is contained in:
parent
f7035e5d76
commit
41955f9cfb
@ -95,6 +95,7 @@
|
|||||||
const { type, id, channel, list } = JSON.parse(event.data)
|
const { type, id, channel, list } = JSON.parse(event.data)
|
||||||
console.log('收到 base 基本信道数据:', type, id, channel)
|
console.log('收到 base 基本信道数据:', type, id, channel)
|
||||||
if (type === 'get_music_list') {
|
if (type === 'get_music_list') {
|
||||||
|
console.log(client, '请求音乐列表x')
|
||||||
console.log(client.name, '请求音乐列表:', musicList.list)
|
console.log(client.name, '请求音乐列表:', musicList.list)
|
||||||
clientList.send('base', JSON.stringify({
|
clientList.send('base', JSON.stringify({
|
||||||
type: 'set_music_list',
|
type: 'set_music_list',
|
||||||
@ -103,6 +104,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (type === 'set_music_list') {
|
if (type === 'set_music_list') {
|
||||||
|
console.log(client, '发来音乐列表x')
|
||||||
console.log(client.name, '发来音乐列表:', event)
|
console.log(client.name, '发来音乐列表:', event)
|
||||||
// 将音乐列表添加到本地
|
// 将音乐列表添加到本地
|
||||||
const ids = musicList.list.map(item => item.id)
|
const ids = musicList.list.map(item => item.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user