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

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
+29
View File
@@ -0,0 +1,29 @@
const { cryptoMd5, signParamsKey, clientver, appid } = require('../util');
// 获取歌手单曲
module.exports = (params, useAxios) => {
const clienttime = Math.floor(new Date().getTime() / 1000);
const mid = params?.cookie?.KUGOU_API_MID;
const dataMap = {
appid,
clientver,
mid,
clienttime,
key: signParamsKey(clienttime),
author_id: params.id,
pagesize: params?.pagesize || 30,
page: params?.page || 1,
sort: params?.sort === 'hot' ? 1 : 2, // 1:最热,2:最新
area_code: 'all',
};
return useAxios({
baseURL: 'https://openapi.kugou.com',
url: '/kmr/v1/audio_group/author',
method: 'POST',
data: dataMap,
encryptType: 'android',
cookie: params?.cookie || {},
headers: { 'x-router': 'openapi.kugou.com', 'kg-tid': 220 },
});
};