opt: account (#1306)

* opt: account

* opt: account

* opt: live api

* opt: buvid

* Revert "opt: buvid"

This reverts commit da1ea68f8b.

* tweak
This commit is contained in:
My-Responsitories
2025-09-23 15:58:40 +08:00
committed by GitHub
parent 6b4fb0d611
commit 1345fd36e4
18 changed files with 173 additions and 208 deletions

View File

@@ -51,6 +51,7 @@ class AccountManager extends Interceptor {
Api.getSeasonDetailApi,
Api.liveRoomDmToken,
Api.liveRoomDmPrefetch,
Api.superChatMsg,
Api.searchByType,
Api.dynSearch,
Api.searchArchive,
@@ -68,6 +69,18 @@ class AccountManager extends Interceptor {
Api.liveList,
Api.searchTrending,
Api.searchRecommend,
Api.getRankApi,
Api.pgcRank,
Api.pgcSeasonRank,
Api.pgcIndexResult,
Api.popularSeriesOne,
Api.popularSeriesList,
Api.popularPrecious,
Api.liveAreaList,
Api.liveFeedIndex,
Api.liveSecondList,
Api.liveRoomAreaList,
Api.liveSearch,
},
// progress
AccountType.video: {
@@ -118,7 +131,7 @@ class AccountManager extends Interceptor {
late final Account account = options.extra['account'] ?? _findAccount(path);
if (_skipCookie(path) || account is NoAccount) return handler.next(options);
if (account is NoAccount || _skipCookie(path)) return handler.next(options);
if (!account.isLogin && path == Api.heartBeat) {
return handler.reject(