完成网络音乐、工具页面与安装器体验升级
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
// 搜索
|
||||
module.exports = (params, useAxios) => {
|
||||
const dataMap = {
|
||||
// token: '',
|
||||
albumhide: 0,
|
||||
iscorrection: 1,
|
||||
keyword: params?.keywords || '',
|
||||
nocollect: 0,
|
||||
page: params?.page || 1,
|
||||
pagesize: params?.pagesize || 30,
|
||||
platform: 'AndroidFilter',
|
||||
};
|
||||
|
||||
|
||||
const type = ['special', 'lyric', 'song', 'album', 'author', 'mv'].includes(params.type) ? params.type : 'song';
|
||||
|
||||
return useAxios({
|
||||
url: `/${type === 'song' ? 'v3' : 'v1'}/search/${type}`,
|
||||
method: 'GET',
|
||||
params: dataMap,
|
||||
encryptType: 'android',
|
||||
headers: { 'x-router': 'complexsearch.kugou.com' },
|
||||
cookie: params?.cookie || {},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user