隐藏音乐列表日志
This commit is contained in:
parent
07b6370ff8
commit
93e5754857
@ -300,7 +300,7 @@ clientList.setChannel('base', {
|
||||
}
|
||||
if (data.type === 'get_music_list') {
|
||||
const ms = musicList.list.filter(item => item.arrayBuffer)
|
||||
console.log(client.name, '请求音乐列表:', ms)
|
||||
//console.log(client.name, '请求音乐列表:', ms)
|
||||
clientList.sendto(client.id, 'base', JSON.stringify({
|
||||
type: 'set_music_list',
|
||||
list: ms.map(({ id, name, size, type }) => ({ id, name, size, type }))
|
||||
@ -308,7 +308,7 @@ clientList.setChannel('base', {
|
||||
return
|
||||
}
|
||||
if (data.type === 'set_music_list') {
|
||||
console.log(client.name, '发来音乐列表:', `x${JSON.parse(event.data).list.length}`)
|
||||
//console.log(client.name, '发来音乐列表:', `x${JSON.parse(event.data).list.length}`)
|
||||
client.musicList = data.list
|
||||
client.musicList.forEach(music => musicList.add(music))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user