From 76cea02b237dd131d9bcbd9c796308b4c99b4f46 Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 13 Jul 2020 21:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`=E8=8E=B7=E5=8F=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=92=AD=E6=94=BE=E8=AE=B0=E5=BD=95`=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0`=E5=9B=BD=E5=AE=B6=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8`=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 5 +++++ README.MD | 1 + docs/README.md | 6 ++++++ module/countries_code_list.js | 20 ++++++++++---------- package.json | 2 +- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index e644998..d1b8c4d 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,9 @@ # 更新日志 +### 3.34.2 | 2020.07.13 +- 修复`获取用户播放记录`接口参数错误问题 [#849](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/849) + +- 增加`国家编码列表`接口 [#841](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/841) + ### 3.34.1 | 2020.07.06 - 登录接口增加 `md5_password` 参数 [#839](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/839) diff --git a/README.MD b/README.MD index 7aa2bfe..228135f 100644 --- a/README.MD +++ b/README.MD @@ -174,6 +174,7 @@ 153. 获取全部视频列表接口 154. 获取历史日推可用日期列表 155. 获取历史日推详细数据 +156. 国家编码列表 ## 环境要求 diff --git a/docs/README.md b/docs/README.md index 911953d..812946a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -171,6 +171,7 @@ 153. 获取全部视频列表接口 154. 获取历史日推可用日期列表 155. 获取历史日推详细数据 +156. 国家编码列表 ## 安装 @@ -517,6 +518,11 @@ signature:用户签名 **调用例子 :** `/user/update?gender=0&signature=测试签名&city=440300&nickname=binary&birthday=1525918298004&province=440000` +### 国家编码列表 +说明 : 调用此接口,可获取国家编码列表 + +**接口地址 :** `/countries/code/list` + ### 获取用户歌单 说明 : 登陆后调用此接口 , 传入用户 id, 可以获取用户歌单 diff --git a/module/countries_code_list.js b/module/countries_code_list.js index 90c67c6..3adf40f 100644 --- a/module/countries_code_list.js +++ b/module/countries_code_list.js @@ -1,13 +1,13 @@ // 国家编码列表 module.exports = (query, request) => { - const data = {} - return request( - 'POST', `http://interface3.music.163.com/eapi/lbs/countries/v1`, data, - { - crypto: 'eapi', - cookie: query.cookie, - proxy: query.proxy, - url: '/api/lbs/countries/v1' - } - ) + const data = {} + return request( + 'POST', `http://interface3.music.163.com/eapi/lbs/countries/v1`, data, + { + crypto: 'eapi', + cookie: query.cookie, + proxy: query.proxy, + url: '/api/lbs/countries/v1' + } + ) } \ No newline at end of file diff --git a/package.json b/package.json index aede01a..a0167f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.34.1", + "version": "3.34.2", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab