完成网络音乐、工具页面与安装器体验升级
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
const { cryptoRSAEncrypt } = require('../util');
|
||||
/**
|
||||
* 获取用户关注的歌手
|
||||
*/
|
||||
module.exports = (params, useAxios) => {
|
||||
const token = params?.token || params?.cookie?.token || '';
|
||||
const userid = params?.userid || params?.cookie?.userid || '0';
|
||||
const dateTime = Math.floor(Date.now() / 1000);
|
||||
const dataMap = {
|
||||
merge: 2,
|
||||
need_iden_type: 1,
|
||||
ext_params: 'k_pic,jumptype,singerid,score',
|
||||
userid,
|
||||
type: 0,
|
||||
id_type: 0,
|
||||
p: cryptoRSAEncrypt({ clienttime: dateTime, token }).toUpperCase(),
|
||||
};
|
||||
|
||||
return useAxios({
|
||||
url: '/v4/follow_list',
|
||||
encryptType: 'android',
|
||||
method: 'POST',
|
||||
data: dataMap,
|
||||
params: { plat: 1 },
|
||||
cookie: params?.cookie || {},
|
||||
headers: { 'x-router': 'relationuser.kugou.com' },
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user