From 4b735daa41484ae04d5b52ec4f1b05452f1bdaf1 Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 15 Nov 2018 11:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20`/song/url`=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=97=A0=E6=B3=95=E8=BF=94=E5=9B=9E=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#374?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 2 ++ module/song_url.js | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 3140c92..aed615e 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,6 @@ # 更新日志 +### 3.0.4 | 2018.11.15 +- 修复 `/song/url` 接口无法返回多个音乐数据的问题 ### 3.0.3 | 2018.11.09 - 修复取消喜欢歌曲失败问题 [#360](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/360) diff --git a/module/song_url.js b/module/song_url.js index da24713..63ddcda 100644 --- a/module/song_url.js +++ b/module/song_url.js @@ -5,7 +5,7 @@ const crypto = require('crypto') module.exports = (query, request) => { if(!('MUSIC_U' in query.cookie)) query.cookie._ntes_nuid = crypto.randomBytes(16).toString("hex") const data = { - ids: '[' + parseInt(query.id) + ']', + ids: '[' + query.id + ']', br: parseInt(query.br || 999000) } return request( diff --git a/package.json b/package.json index 89f7750..5cd890a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.0.3", + "version": "3.0.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",