feat: integrate api in electron app

This commit is contained in:
kunkka 2020-10-27 23:08:38 +08:00
parent bd29570e31
commit 74bf714c28
240 changed files with 21003 additions and 112 deletions

20
napi/module/mv_all.js Normal file
View file

@ -0,0 +1,20 @@
// 全部MV
module.exports = (query, request) => {
const data = {
tags: JSON.stringify({
地区: query.area || '全部',
类型: query.type || '全部',
排序: query.order || '上升最快',
}),
offset: query.offset || 0,
total: 'true',
limit: query.limit || 30,
};
return request('POST', `https://interface.music.163.com/api/mv/all`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
});
};