neteasecloudmusicapi/module/djRadio_top.js

22 lines
670 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//电台排行榜获取
const createOption = require('../util/option.js')
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,
},
)
}