From afd468ca183998232cbf440cfaf2462c10d57e4c Mon Sep 17 00:00:00 2001 From: binaryify Date: Tue, 23 Jun 2020 14:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=AF=8F=E6=97=A5=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E6=8E=A5=E5=8F=A3=20#826?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/recommend_songs.js | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 7e07af4..f0c0f59 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.33.2 | 2020.06.23 +- 更新每日推荐接口 [#826](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/826) + ### 3.33.1 | 2020.06.15 - 修复直接调用时传入 cookie 不生效的问题 [#822](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/822) diff --git a/module/recommend_songs.js b/module/recommend_songs.js index 233e0ed..efb270d 100644 --- a/module/recommend_songs.js +++ b/module/recommend_songs.js @@ -1,11 +1,11 @@ // 每日推荐歌曲 module.exports = (query, request) => { + query.cookie.os = 'ios' const data = { - total: true } return request( - 'POST', `https://music.163.com/weapi/v1/discovery/recommend/songs`, data, + 'POST', `https://music.163.com/api/v3/discovery/recommend/songs`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} ) } \ No newline at end of file diff --git a/package.json b/package.json index d5e6aaa..96538f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.33.1", + "version": "3.33.2", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab