From a96a1fbe79edff38f5e2c9edb21fc5c9e08df82d Mon Sep 17 00:00:00 2001 From: shininome <67734180+shininome@users.noreply.github.com> Date: Wed, 14 Dec 2022 18:50:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bilibili=20=E5=90=88=E9=9B=86=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=93=BE=E6=8E=A5=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8F=E7=9A=84=20(#1144?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update userCollection.js * Update userCollection.js 修改链接为需要排序 默认的无时间排序导致无法请求最新 --- lib/v2/bilibili/userCollection.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/v2/bilibili/userCollection.js b/lib/v2/bilibili/userCollection.js index c3e5ce481e..f092c9de1a 100644 --- a/lib/v2/bilibili/userCollection.js +++ b/lib/v2/bilibili/userCollection.js @@ -11,10 +11,9 @@ module.exports = async (ctx) => { const uid = parseInt(ctx.params.uid); const sid = parseInt(ctx.params.sid); const disableEmbed = ctx.params.disableEmbed; - const link = `https://space.bilibili.com/${uid}/channel/collectiondetail?sid=${sid}`; const [userName, face] = await cache.getUsernameAndFaceFromUID(ctx, uid); - const host = `https://api.bilibili.com/x/polymer/space/seasons_archives_list?mid=${uid}&season_id=${sid}&sort_reverse=false&page_num=1&page_size=10`; + const host = `https://api.bilibili.com/x/polymer/space/seasons_archives_list?mid=${uid}&season_id=${sid}&sort_reverse=true&page_num=1&page_size=10`; const response = await got(host, { headers: {