feat: filter a ximalaya id

This commit is contained in:
DIYgod 2020-07-22 20:54:07 +08:00
parent 47232602c3
commit cf97ab4627
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ const categoryDict = {
module.exports = async (ctx) => {
const id = ctx.params.id; // 专辑id
if (id === '31879246') {
throw 'Forbidden';
}
const isAll = ctx.params.all ? true : false;
const pageSize = isAll ? 200 : 30;
const AlbumInfoApi = `https://www.ximalaya.com/revision/album?albumId=${id}`; // 专辑数据的API