feat: filter a ximalaya id
This commit is contained in:
parent
47232602c3
commit
cf97ab4627
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue