Skip to content

Commit

Permalink
feat: filter a ximalaya id
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 22, 2020
1 parent 4723260 commit cf97ab4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/routes/ximalaya/album.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf97ab4

Please sign in to comment.