From e5db2139bc0ff393e8943d390682d2666ba0c2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=89=93=E9=87=8E?= <18128966990@163.com> Date: Tue, 12 Sep 2023 11:58:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8E=B7=E5=8F=96=E6=92=AD=E5=AE=A2?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E7=9A=84=E5=A3=B0=E9=9F=B3=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 15 +++++++++++++++ module/voice_detail.js | 16 ++++++++++++++++ public/voice_upload.html | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 module/voice_detail.js diff --git a/docs/README.md b/docs/README.md index ca4a962bc2b..85638461a1c 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 00000000000..0f0f89d100d --- /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 be7db4f5108..60949c7fa2a 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);