feat: 获取播客里面的声音详情

This commit is contained in:
龙打野 2023-09-12 11:58:57 +08:00
parent 005a45309c
commit e5db2139bc
3 changed files with 32 additions and 1 deletions

View File

@ -4202,6 +4202,21 @@ ONLINE 已发布
`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*200, 其中 200 为 limit 的值 `offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*200, 其中 200 为 limit 的值
### 播客声音详情
说明: 获取播客里的声音详情
**接口地址:** `/voice/detail`
**必选参数:**
`id`: 播客声音id(voiceId)
返回结果的`displayStatus`参数对应:
```
同上
```
### 播客上传声音 ### 播客上传声音
说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: <a href="/voice_upload.html" target="_blank">/voice_upload.html</a> 说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: <a href="/voice_upload.html" target="_blank">/voice_upload.html</a>

16
module/voice_detail.js Normal file
View File

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

View File

@ -92,7 +92,7 @@
this.voicelist = res.data.data.list this.voicelist = res.data.data.list
this.voicelist.map(async i => { this.voicelist.map(async i => {
const res2 = await axios({ 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 i.voiceListData = res2.data.data.list
console.log(res2); console.log(res2);