From ae19c229ae0e6bcb9001748a81877ef0fa231a71 Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 22 May 2017 09:14:25 +0800 Subject: [PATCH] improve doc --- docs/README.md | 2 +- router/song_detail.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index e43abc0..60410ec 100644 --- a/docs/README.md +++ b/docs/README.md @@ -529,7 +529,7 @@ $ set PORT=4000 && node app.js 说明:调用此接口,传入音乐 id, 可获得歌曲详情 **必选参数:** -`ids`: 音乐 id,可多个,如 `ids=347230` 或者 `ids=347230,347231` +`ids`: 音乐 id,如 `ids=347230` **接口地址:** `/song/detail` diff --git a/router/song_detail.js b/router/song_detail.js index 2e1e866..bb014bd 100644 --- a/router/song_detail.js +++ b/router/song_detail.js @@ -6,11 +6,12 @@ router.get("/", (req, res) => { const cookie = req.get('Cookie') ? req.get('Cookie') : '' const id = parseInt(req.query.ids) const data = { - "id": id, + // "id": id, 'c': JSON.stringify([{ id: id }]), "ids": '[' + id + ']', "csrf_token": "" } + console.log(data) createWebAPIRequest( 'music.163.com', '/weapi/v3/song/detail',