@@ -23,6 +23,7 @@ export const route: Route = {
2323| useAvid | 视频链接使用 AV 号 (默认为 BV 号) | 0/1/true/false | false |
2424| directLink | 使用内容直链 | 0/1/true/false | false |
2525| hideGoods | 隐藏带货动态 | 0/1/true/false | false |
26+ | offset | 偏移状态 | string | "" |
2627
2728用例:\`/bilibili/user/dynamic/2267573/showEmoji=1&embed=0&useAvid=1\`` ,
2829 } ,
@@ -232,13 +233,14 @@ async function handler(ctx) {
232233 const showEmoji = fallback ( undefined , queryToBoolean ( routeParams . showEmoji ) , false ) ;
233234 const embed = fallback ( undefined , queryToBoolean ( routeParams . embed ) , true ) ;
234235 const displayArticle = ctx . req . query ( 'mode' ) === 'fulltext' ;
236+ const offset = fallback ( undefined , routeParams . offset , '' ) ;
235237 const useAvid = fallback ( undefined , queryToBoolean ( routeParams . useAvid ) , false ) ;
236238 const directLink = fallback ( undefined , queryToBoolean ( routeParams . directLink ) , false ) ;
237239 const hideGoods = fallback ( undefined , queryToBoolean ( routeParams . hideGoods ) , false ) ;
238240
239241 const cookie = await cacheIn . getCookie ( ) ;
240242
241- const params = utils . addDmVerifyInfo ( `host_mid=${ uid } &platform=web&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote` , utils . getDmImgList ( ) ) ;
243+ const params = utils . addDmVerifyInfo ( `offset= ${ offset } & host_mid=${ uid } &platform=web&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote` , utils . getDmImgList ( ) ) ;
242244 const response = await got ( `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?${ params } ` , {
243245 headers : {
244246 Referer : `https://space.bilibili.com/${ uid } /` ,
0 commit comments