隐藏音乐列表日志
This commit is contained in:
		@@ -300,7 +300,7 @@ clientList.setChannel('base', {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    if (data.type === 'get_music_list') {
 | 
					    if (data.type === 'get_music_list') {
 | 
				
			||||||
      const ms = musicList.list.filter(item => item.arrayBuffer)
 | 
					      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({
 | 
					      clientList.sendto(client.id, 'base', JSON.stringify({
 | 
				
			||||||
        type: 'set_music_list',
 | 
					        type: 'set_music_list',
 | 
				
			||||||
        list: ms.map(({ id, name, size, type }) => ({ id, name, size, type }))
 | 
					        list: ms.map(({ id, name, size, type }) => ({ id, name, size, type }))
 | 
				
			||||||
@@ -308,7 +308,7 @@ clientList.setChannel('base', {
 | 
				
			|||||||
      return
 | 
					      return
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (data.type === 'set_music_list') {
 | 
					    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 = data.list
 | 
				
			||||||
      client.musicList.forEach(music => musicList.add(music))
 | 
					      client.musicList.forEach(music => musicList.add(music))
 | 
				
			||||||
      return
 | 
					      return
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user