合并相同接口

This commit is contained in:
chen_10
2021-11-23 15:05:57 +08:00
parent b43c0871ed
commit 873eb58899
3 changed files with 5 additions and 34 deletions
-20
View File
@@ -1,20 +0,0 @@
// 发送文本动态
module.exports = (query, request) => {
const data = {
msg: query.msg,
type: 'noresource',
}
return request(
'POST',
`https://interface.music.163.com/eapi/share/friends/resource`,
data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
url: '/api/share/friends/resource',
},
)
}
+1 -1
View File
@@ -2,7 +2,7 @@
module.exports = (query, request) => {
const data = {
type: query.type || 'song', // song,playlist,mv,djprogram,djradio
type: query.type || 'song', // song,playlist,mv,djprogram,djradio,noresource
msg: query.msg || '',
id: query.id || '',
}