fix: ximalaya list sort (#2804)
* enhance: ximalaya list reverse * fix: ximalaya list sort
This commit is contained in:
parent
eed1accb09
commit
a98d7e07c7
|
|
@ -22,8 +22,9 @@ module.exports = async (ctx) => {
|
|||
const album_desc = author_intro + ' <br/>' + album_intro;
|
||||
const albumUrl = '/' + classify + '/' + id + '/'; // 某分类的链接
|
||||
const ispaid = albuminfo.isPaid; // 是否需要付费
|
||||
const isAsc = AlbumInfoResponse.data.data.tracksInfo.sort === 0;
|
||||
|
||||
const TrackInfoApi = `http://mobile.ximalaya.com/mobile/v1/album/track/?albumId=${id}&pageSize=${pageSize}&pageId=`;
|
||||
const TrackInfoApi = `http://mobile.ximalaya.com/mobile/v1/album/track/?albumId=${id}&isAsc=${!isAsc}&pageSize=${pageSize}&pageId=`;
|
||||
const TrackInfoResponse = await got_ins.get(TrackInfoApi + 1);
|
||||
const maxPageId = TrackInfoResponse.data.data.maxPageId; // 专辑数据
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue