From 8437f9a7cdd8849be4e2f2bac8f9e70a9b1e126d Mon Sep 17 00:00:00 2001 From: toolor Date: Tue, 30 Apr 2024 01:55:20 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B5=E5=8F=B0=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/voice_top.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 module/voice_top.js diff --git a/module/voice_top.js b/module/voice_top.js new file mode 100644 index 0000000..752f739 --- /dev/null +++ b/module/voice_top.js @@ -0,0 +1,20 @@ +//电台排行榜获取 +module.exports = (query, request) => { + const data = { + djRadioId: query.djRadioId || null, // 电台id + sortIndex: query.sortIndex || 1, // 排序 1:播放数 2:点赞数 3:评论数 4:分享数 5:收藏数 + dataGapDays: query.dataGapDays || 7, // 天数 7:一周 30:一个月 90:三个月 + dataType: query.dataType || 3, // 未知 + } + return request( + 'POST', + 'https://interface.music.163.com/weapi/expert/worksdata/works/top/get', + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +}