diff --git a/docs/README.md b/docs/README.md index ca4a962..8563846 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4202,6 +4202,21 @@ ONLINE 已发布 `offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*200, 其中 200 为 limit 的值 +### 播客声音详情 + +说明: 获取播客里的声音详情 + +**接口地址:** `/voice/detail` + +**必选参数:** +`id`: 播客声音id(voiceId) + +返回结果的`displayStatus`参数对应: + +``` +同上 +``` + ### 播客上传声音 说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: /voice_upload.html diff --git a/module/voice_detail.js b/module/voice_detail.js new file mode 100644 index 0000000..0f0f89d --- /dev/null +++ b/module/voice_detail.js @@ -0,0 +1,16 @@ +module.exports = (query, request) => { + const data = { + id: query.id, + } + return request( + 'POST', + `https://interface.music.163.com/weapi/voice/workbench/voice/detail`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} diff --git a/public/voice_upload.html b/public/voice_upload.html index be7db4f..60949c7 100644 --- a/public/voice_upload.html +++ b/public/voice_upload.html @@ -92,7 +92,7 @@ this.voicelist = res.data.data.list this.voicelist.map(async i => { const res2 = await axios({ - url: `/voicelist/list?cookie=${this.cookieToken}&voiceListId=${i.voiceListId}&limit=5`, + url: `/voicelist/list?voiceListId=${i.voiceListId}&limit=5`, }) i.voiceListData = res2.data.data.list console.log(res2);