YesPlayMusic/netease_api/module/user_record.js

15 lines
343 B
JavaScript
Raw Normal View History

2021-03-06 22:04:18 +08:00
// 听歌排行
module.exports = (query, request) => {
const data = {
uid: query.uid,
type: query.type || 0, // 1: 最近一周, 0: 所有时间
}
return request('POST', `https://music.163.com/weapi/v1/play/record`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
})
}