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

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
+24
View File
@@ -0,0 +1,24 @@
const { cryptoRSAEncrypt } = require('../util');
module.exports = (params, useAxios) => {
const token = params?.token || params?.cookie?.token || '';
const userid = Number(params?.userid || params?.cookie?.userid || '0');
const clienttime_ms = Math.floor(Date.now() / 1000);
const pk = cryptoRSAEncrypt({ token, clienttime: clienttime_ms }).toUpperCase();
const dataMap = {
visit_time: clienttime_ms,
usertype: 1,
p: pk,
userid,
};
return useAxios({
url: '/v3/get_my_info',
method: 'POST',
data: dataMap,
params: { plat: 1 },
encryptType: 'android',
cookie: params?.cookie || {},
headers: { 'x-router': 'usercenter.kugou.com' },
});
};