mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
POST method support fixed
This commit is contained in:
+10
-12
@@ -1,16 +1,14 @@
|
||||
// 新歌速递
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
areaId: query.type || 0, // 全部:0 华语:7 欧美:96 日本:8 韩国:16
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0,
|
||||
total: true
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`http://music.163.com/weapi/v1/discovery/new/songs`,
|
||||
data,
|
||||
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
|
||||
)
|
||||
const data = {
|
||||
areaId: query.type || 0, // 全部:0 华语:7 欧美:96 日本:8 韩国:16
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0,
|
||||
total: true
|
||||
}
|
||||
return request(
|
||||
'POST', `http://music.163.com/weapi/v1/discovery/new/songs`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user