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

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 @@
// ip 专区
module.exports = (params, useAxios) => {
return new Promise((resolve, reject) => {
useAxios({
url: `/v1/zone/index`,
encryptType: 'android',
method: 'GET',
cookie: params?.cookie || {},
headers: { 'x-router': 'yuekucategory.kugou.com' },
})
.then((resp) => {
if (resp.body.status == 1) {
if (resp.body.data?.list) {
const list = Array.isArray(resp.body.data.list) ? resp.body.data?.list : [];
for (let index = 0; index < list.length; index += 1) {
if (list[index].special_link) {
const urls = new URLSearchParams(list[index].special_link);
if (urls.has('path')) {
const pathUrls = new URLSearchParams(urls.get('path') || '');
list[index]['ip_id'] = Number(pathUrls.get('ip_id') || '');
}
}
}
resp.body.data.list = list;
}
}
resolve(resp);
})
.catch((e) => reject(e));
});
};