合并相同接口

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

View File

@ -241,10 +241,9 @@
223. 领取云豆 223. 领取云豆
224. 获取 VIP 信息 224. 获取 VIP 信息
225. 音乐人签到 225. 音乐人签到
226. 发送文本动态 226. 获取客户端歌曲下载 url
227. 获取客户端歌曲下载 url 227. 获取歌单所有歌曲
228. 获取歌单所有歌曲 228. 乐签信息
229. 乐签信息
## 安装 ## 安装
@ -982,7 +981,7 @@ tags: 歌单标签
**接口地址 :** `/share/resource` **接口地址 :** `/share/resource`
**调用例子 :** `/share/resource?id=1297494209&msg=测试` `/share/resource?type=djradio&id=336355127` `/share/resource?type=djprogram&id=2061034798` `/share/resource?type=djprogram&id=2061034798&msg=测试@binaryify 测试` **调用例子 :** `/share/resource?id=1297494209&msg=测试` `/share/resource?type=djradio&id=336355127` `/share/resource?type=djprogram&id=2061034798` `/share/resource?type=djprogram&id=2061034798&msg=测试@binaryify 测试` `/share/resource?type=noresource&msg=测试`
### 获取动态评论 ### 获取动态评论
@ -3588,14 +3587,6 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**接口地址 :** `/playlist/privacy` **接口地址 :** `/playlist/privacy`
### 发送文本动态
说明: 可以调用此接口发送动态。
**必选参数 :** `msg` : 要发送的动态内容
**接口地址 :** `/send/event/text`
### 获取客户端歌曲下载 url ### 获取客户端歌曲下载 url
说明 : 使用 `/song/url` 接口获取的是歌曲试听 url, 但存在部分歌曲在非 VIP 账号上可以下载无损音质而不能试听无损音质, 使用此接口可使非 VIP 账号获取这些歌曲的无损音频 说明 : 使用 `/song/url` 接口获取的是歌曲试听 url, 但存在部分歌曲在非 VIP 账号上可以下载无损音质而不能试听无损音质, 使用此接口可使非 VIP 账号获取这些歌曲的无损音频

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',
},
)
}

View File

@ -2,7 +2,7 @@
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
type: query.type || 'song', // song,playlist,mv,djprogramdjradio type: query.type || 'song', // song,playlist,mv,djprogram,djradio,noresource
msg: query.msg || '', msg: query.msg || '',
id: query.id || '', id: query.id || '',
} }