refactor: 进一步封装option

This commit is contained in:
overwriter
2024-06-25 20:04:53 +08:00
parent d23b4a3653
commit 6d6bd1ad77
255 changed files with 608 additions and 1821 deletions
+6 -7
View File
@@ -13,11 +13,10 @@ module.exports = (query, request) => {
//曲库纠错 ARTIST:1 ALBUM:2 SONG:3 MV:4 LYRIC:5 TLYRIC:6
//曲库补充 ALBUM:101 MV:103
}
return request('POST', `https://music.163.com/weapi/rep/ugc/detail`, data, {
crypto: 'weapi',
cookie: query.cookie,
ua: query.ua || '',
proxy: query.proxy,
realIP: query.realIP,
})
return request(
'POST',
`https://music.163.com/weapi/rep/ugc/detail`,
data,
createOption(query, 'weapi'),
)
}