完成网络音乐、工具页面与安装器体验升级

This commit is contained in:
2026-08-18 13:54:33 +08:00
parent 337390f53e
commit 149c28082d
1082 changed files with 26442 additions and 162838 deletions
+31
View File
@@ -0,0 +1,31 @@
const { cryptoAesEncrypt, rsaEncrypt2 } = require('../util');
// 关注歌手
module.exports = (params, useAxios) => {
const singerid = Number(params.id);
const token = params?.token || params.cookie?.token || '';
const userid = Number(params?.userid || params?.cookie?.userid || 0);
const clienttime = Math.floor(Date.now() / 1000);
const encrypt = cryptoAesEncrypt({ singerid, token });
const paramsMap = {
plat: 0,
userid,
singerid,
source: 7,
p: rsaEncrypt2({ clienttime, key: encrypt.key }),
params: encrypt.str
}
return useAxios({
url: '/followservice/v3/follow_singer',
method: 'post',
data: paramsMap,
params: {clienttime},
encryptType: 'android',
cookie: params?.cookie || {},
});
};