mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 07:06:14 +08:00
fix heartbeat
Closes #929 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -15,6 +15,7 @@ class Accounts {
|
||||
static late final Box<LoginAccount> account;
|
||||
static final Map<AccountType, Account> accountMode = {};
|
||||
static Account get main => accountMode[AccountType.main]!;
|
||||
static Account get heartbeat => accountMode[AccountType.heartbeat]!;
|
||||
// static set main(Account account) => set(AccountType.main, account);
|
||||
|
||||
static Future<void> init() async {
|
||||
|
||||
@@ -24,9 +24,23 @@ class AccountManager extends Interceptor {
|
||||
Api.videoIntro,
|
||||
Api.replyList,
|
||||
Api.replyReplyList,
|
||||
|
||||
// history
|
||||
Api.heartBeat,
|
||||
Api.ab2c,
|
||||
Api.historyReport,
|
||||
Api.roomEntryAction,
|
||||
Api.historyList,
|
||||
Api.pauseHistory,
|
||||
Api.clearHistory,
|
||||
Api.delHistory,
|
||||
Api.searchHistory,
|
||||
Api.historyStatus,
|
||||
Api.mediaListHistory,
|
||||
// progress
|
||||
Api.pgcInfo,
|
||||
Api.pugvInfo,
|
||||
|
||||
Api.ab2c,
|
||||
Api.liveRoomInfo,
|
||||
Api.liveRoomInfoH5,
|
||||
Api.onlineTotal,
|
||||
@@ -53,6 +67,7 @@ class AccountManager extends Interceptor {
|
||||
Api.searchTrending,
|
||||
Api.searchRecommend,
|
||||
},
|
||||
// progress
|
||||
AccountType.video: {
|
||||
Api.ugcUrl,
|
||||
Api.pgcUrl,
|
||||
|
||||
Reference in New Issue
Block a user