From 0475f3b61d6d8f4da0d432018b28151fdf3ae4a9 Mon Sep 17 00:00:00 2001 From: chen10 <1803012703@qq.com> Date: Sat, 29 May 2021 21:13:10 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=AD=8C=E6=89=8B?= =?UTF-8?q?=E7=B2=89=E4=B8=9D=E6=8E=A5=E5=8F=A3;=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E4=B8=93=E8=BE=91=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3;?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E4=B8=93=E8=BE=91=E9=94=80=E9=87=8F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 38 +++++++++++++++++++++++++++++++++++ module/artist_fans.js | 16 +++++++++++++++ module/digitalAlbum_detail.js | 19 ++++++++++++++++++ module/digitalAlbum_sales.js | 19 ++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 module/artist_fans.js create mode 100644 module/digitalAlbum_detail.js create mode 100644 module/digitalAlbum_sales.js diff --git a/docs/README.md b/docs/README.md index c6e82f2f5cb..3b84f7b62af 100644 --- a/docs/README.md +++ b/docs/README.md @@ -231,6 +231,9 @@ 213. vip成长值获取记录 214. vip任务 215. 领取vip成长值 +216. 歌手粉丝 +216. 数字专辑详情 +217. 数字专辑销量 ## 安装 @@ -3376,6 +3379,41 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **调用例子 :** `/vip/growthpoint/get?id=7043206830_7` +### 歌手粉丝 + +说明 : 调用此接口 , 传入歌手 id, 可获取歌手粉丝 + +**必选参数 :** `id` : 歌手 id + +**可选参数 :** `limit`: 取出粉丝数量 , 默认为 20 + +`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*10, 其中 10 为 limit 的值 + +**接口地址 :** `/artist/fans` + +**调用例子 :** `/artist/fans?id=2116&limit=10&offset=0` + +### 数字专辑详情 + +说明 : 调用此接口 , 传入专辑 id, 可获取数字专辑信息 + +**必选参数 :** `id` : 专辑 id + +**接口地址 :** `/digitalAlbum/detail` + +**调用例子 :** `/digitalAlbum/detail?id=120605500` + +### 数字专辑销量 + +说明 : 调用此接口 , 传入专辑 id, 可获取数字专辑销量 + +**必选参数 :** `ids` : 专辑 id, 支持多个,用`,`隔开 + +**接口地址 :** `/digitalAlbum/sales` + +**调用例子 :** `/digitalAlbum/sales?id=120605500` `/digitalAlbum/sales?id=120605500,125080528,` + + ## 离线访问此文档 diff --git a/module/artist_fans.js b/module/artist_fans.js new file mode 100644 index 00000000000..e9050b8a1dd --- /dev/null +++ b/module/artist_fans.js @@ -0,0 +1,16 @@ +// 歌手粉丝 + +module.exports = (query, request) => { + const data = { + id: query.id, + limit: query.limit || 20, + offset: query.offset || 0, + } + return request('POST', `https://music.163.com/weapi/artist/fans/get`, data, { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }) + } + \ No newline at end of file diff --git a/module/digitalAlbum_detail.js b/module/digitalAlbum_detail.js new file mode 100644 index 00000000000..b257ff58d71 --- /dev/null +++ b/module/digitalAlbum_detail.js @@ -0,0 +1,19 @@ +// 数字专辑详情 + +module.exports = (query, request) => { + const data = { + id: query.id, + } + return request( + 'POST', + `https://music.163.com/weapi/vipmall/albumproduct/detail`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/digitalAlbum_sales.js b/module/digitalAlbum_sales.js new file mode 100644 index 00000000000..4ba18cb830a --- /dev/null +++ b/module/digitalAlbum_sales.js @@ -0,0 +1,19 @@ +// 数字专辑销量 + +module.exports = (query, request) => { + const data = { + albumIds: query.ids, + } + return request( + 'POST', + `https://music.163.com/weapi/vipmall/albumproduct/album/query/sales`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file From f2ec40d36e790c93d7231971be703a862174b0c1 Mon Sep 17 00:00:00 2001 From: chen10 <1803012703@qq.com> Date: Mon, 31 May 2021 09:46:02 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9F=B3=E4=B9=90?= =?UTF-8?q?=E4=BA=BA=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 55 ++++++++++++++++++++++++++++- module/artist_fans.js | 22 +++++++----- module/musician_cloudbean.js | 17 +++++++++ module/musician_cloudbean_obtain.js | 20 +++++++++++ module/musician_data_overview.js | 17 +++++++++ module/musician_play_trend.js | 20 +++++++++++ module/musician_tasks.js | 17 +++++++++ 7 files changed, 158 insertions(+), 10 deletions(-) create mode 100644 module/musician_cloudbean.js create mode 100644 module/musician_cloudbean_obtain.js create mode 100644 module/musician_data_overview.js create mode 100644 module/musician_play_trend.js create mode 100644 module/musician_tasks.js diff --git a/docs/README.md b/docs/README.md index 3b84f7b62af..d5f56651ad1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -234,6 +234,11 @@ 216. 歌手粉丝 216. 数字专辑详情 217. 数字专辑销量 +218. 音乐人数据概况 +219. 音乐人播放趋势 +220. 音乐人任务 +221. 账号云豆数 +222. 领取云豆 ## 安装 @@ -3411,7 +3416,55 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **接口地址 :** `/digitalAlbum/sales` -**调用例子 :** `/digitalAlbum/sales?id=120605500` `/digitalAlbum/sales?id=120605500,125080528,` +**调用例子 :** `/digitalAlbum/sales?id=120605500` `/digitalAlbum/sales?id=120605500,125080528` + +### 音乐人数据概况 + +说明 : 音乐人登录后调用此接口 , 可获取统计数据概况 + +**接口地址 :** `/musician/data/overview` + +**调用例子 :** `/musician/data/overview` + +### 音乐人播放趋势 + +说明 : 音乐人登录后调用此接口 , 可获取歌曲播放趋势 + +**必选参数 :** `startTime` : 开始时间 + +`endTime` : 结束时间 + +**接口地址 :** `/musician/play/trend` + +**调用例子 :** `/musician/play/trend?startTime=2021-05-24&endTime=2021-05-30` + +### 音乐人任务 + +说明 : 音乐人登录后调用此接口 , 可获取音乐人任务 + +**接口地址 :** `/musician/tasks` + +**调用例子 :** `/musician/tasks` + +### 账号云豆数 + +说明 : 音乐人登录后调用此接口 , 可获取账号云豆数 + +**接口地址 :** `/musician/cloudbean` + +**调用例子 :** `/musician/cloudbean` + +### 领取云豆 + +说明 : 音乐人登录后调用此接口 , 可领取已完成的音乐人任务的云豆奖励 + +**必选参数 :** `id` : 任务id,通过`/musician/tasks`获取到的`userMissionId`即为任务id + +`period` : 通过`/musician/tasks`获取 + +**接口地址 :** `/musician/cloudbean/obtain` + +**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1` diff --git a/module/artist_fans.js b/module/artist_fans.js index e9050b8a1dd..b520716182e 100644 --- a/module/artist_fans.js +++ b/module/artist_fans.js @@ -1,16 +1,20 @@ // 歌手粉丝 module.exports = (query, request) => { - const data = { - id: query.id, - limit: query.limit || 20, - offset: query.offset || 0, - } - return request('POST', `https://music.163.com/weapi/artist/fans/get`, data, { + const data = { + id: query.id, + limit: query.limit || 20, + offset: query.offset || 20, + } + return request( + 'POST', + `https://music.163.com/weapi/artist/fans/get`, + data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy, realIP: query.realIP, - }) - } - \ No newline at end of file + }, + ) +} diff --git a/module/musician_cloudbean.js b/module/musician_cloudbean.js new file mode 100644 index 00000000000..33f5ff0b5b3 --- /dev/null +++ b/module/musician_cloudbean.js @@ -0,0 +1,17 @@ +// 账号云豆数 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/cloudbean/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/musician_cloudbean_obtain.js b/module/musician_cloudbean_obtain.js new file mode 100644 index 00000000000..7829debd043 --- /dev/null +++ b/module/musician_cloudbean_obtain.js @@ -0,0 +1,20 @@ +// 领取云豆 + +module.exports = (query, request) => { + const data = { + userMissionId: query.id, + period: query.period, + } + return request( + 'POST', + `https://music.163.com/weapi/nmusician/workbench/mission/reward/obtain/new`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file diff --git a/module/musician_data_overview.js b/module/musician_data_overview.js new file mode 100644 index 00000000000..bcee213eabd --- /dev/null +++ b/module/musician_data_overview.js @@ -0,0 +1,17 @@ +// 音乐人数据概况 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/creator/musician/statistic/data/overview/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} + \ No newline at end of file diff --git a/module/musician_play_trend.js b/module/musician_play_trend.js new file mode 100644 index 00000000000..affec8e9e85 --- /dev/null +++ b/module/musician_play_trend.js @@ -0,0 +1,20 @@ +// 音乐人歌曲播放趋势 + +module.exports = (query, request) => { + const data = { + startTime: query.startTime, + endTime: query.endTime, + } + return request( + 'POST', + `https://music.163.com/weapi/creator/musician/play/count/statistic/data/trend/get`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} + \ No newline at end of file diff --git a/module/musician_tasks.js b/module/musician_tasks.js new file mode 100644 index 00000000000..55cf5c294b4 --- /dev/null +++ b/module/musician_tasks.js @@ -0,0 +1,17 @@ +// 获取音乐人任务 + +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/weapi/nmusician/workbench/mission/cycle/list`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) + } + \ No newline at end of file From 26506ad48c7f3c106612469cab4d8bbdedd1e9fe Mon Sep 17 00:00:00 2001 From: chen10 <1803012703@qq.com> Date: Mon, 31 May 2021 09:52:51 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=8C=E6=89=8B?= =?UTF-8?q?=E7=B2=89=E4=B8=9D=E6=8E=A5=E5=8F=A3=E9=BB=98=E8=AE=A4=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/artist_fans.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/artist_fans.js b/module/artist_fans.js index b520716182e..1f1ed169841 100644 --- a/module/artist_fans.js +++ b/module/artist_fans.js @@ -4,7 +4,7 @@ module.exports = (query, request) => { const data = { id: query.id, limit: query.limit || 20, - offset: query.offset || 20, + offset: query.offset || 0, } return request( 'POST', From b1beb10acf6148890a0b1ae90513fe0c2ae2b52a Mon Sep 17 00:00:00 2001 From: chen10 <1803012703@qq.com> Date: Mon, 31 May 2021 10:00:31 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 2 +- docs/workspace.code-workspace | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 docs/workspace.code-workspace diff --git a/docs/README.md b/docs/README.md index d5f56651ad1..64dbcfd8c4b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3416,7 +3416,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **接口地址 :** `/digitalAlbum/sales` -**调用例子 :** `/digitalAlbum/sales?id=120605500` `/digitalAlbum/sales?id=120605500,125080528` +**调用例子 :** `/digitalAlbum/sales?ids=120605500` `/digitalAlbum/sales?ids=120605500,125080528` ### 音乐人数据概况 diff --git a/docs/workspace.code-workspace b/docs/workspace.code-workspace new file mode 100644 index 00000000000..276afc2d5d1 --- /dev/null +++ b/docs/workspace.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "../.." + }, + { + "path": ".." + } + ], + "settings": {} +} \ No newline at end of file From b0e12093e5ab29c1e6f54931b623046ec5f07394 Mon Sep 17 00:00:00 2001 From: chen310 <33364396+chen310@users.noreply.github.com> Date: Mon, 31 May 2021 04:02:51 +0000 Subject: [PATCH 5/6] Delete workspace.code-workspace --- docs/workspace.code-workspace | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 docs/workspace.code-workspace diff --git a/docs/workspace.code-workspace b/docs/workspace.code-workspace deleted file mode 100644 index 276afc2d5d1..00000000000 --- a/docs/workspace.code-workspace +++ /dev/null @@ -1,11 +0,0 @@ -{ - "folders": [ - { - "path": "../.." - }, - { - "path": ".." - } - ], - "settings": {} -} \ No newline at end of file From 4102a705fb7e35555238895a53214e987e71ea00 Mon Sep 17 00:00:00 2001 From: chen10 <1803012703@qq.com> Date: Mon, 31 May 2021 12:07:42 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=88=90=E9=95=BF=E5=80=BC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 6 +++--- interface.d.ts | 2 +- module/vip_growthpoint_get.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index 64dbcfd8c4b..a907d41c540 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3376,13 +3376,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` ### 领取vip成长值 -说明 : 登陆后调用此接口 , 可获取会员成长值 +说明 : 登陆后调用此接口 , 可获取已完成的会员任务的成长值奖励 -**必选参数 :** `id` : 会员任务 id +**必选参数 :** `ids` : 通过`/vip/tasks`获取到的`unGetIds` **接口地址 :** `/vip/growthpoint/get` -**调用例子 :** `/vip/growthpoint/get?id=7043206830_7` +**调用例子 :** `/vip/growthpoint/get?ids=7043206830_7` `/vip/growthpoint/get?ids=8613118351_1,8607552957_1` ### 歌手粉丝 diff --git a/interface.d.ts b/interface.d.ts index 74907c591a1..c0d04efc06e 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1470,6 +1470,6 @@ export function vip_tasks(params: RequestBaseConfig): Promise export function vip_growthpoint_get( params: { - id?: number | string + ids?: number | string } & RequestBaseConfig, ): Promise diff --git a/module/vip_growthpoint_get.js b/module/vip_growthpoint_get.js index b903197bd45..69ae94b8b95 100644 --- a/module/vip_growthpoint_get.js +++ b/module/vip_growthpoint_get.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { const data = { - taskIds: query.id, + taskIds: query.ids, } return request( 'POST',