From 17ea416c989fa30f4a5c958c2cebef9db5d7351b Mon Sep 17 00:00:00 2001 From: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com> Date: Sun, 11 May 2025 00:29:03 +0800 Subject: [PATCH] opt: buvid3 --- lib/utils/accounts/account.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/utils/accounts/account.dart b/lib/utils/accounts/account.dart index 06f5fa5a..2d4e5b3b 100644 --- a/lib/utils/accounts/account.dart +++ b/lib/utils/accounts/account.dart @@ -76,10 +76,12 @@ class LoginAccount implements Account { this.accessKey, this.refresh, [ Set? type, - ]) : type = type ?? {}; + ]) : type = type ?? {} { + cookieJar.setBuvid3(); + } factory LoginAccount.fromJson(Map json) => LoginAccount( - BiliCookieJar.fromJson(json['cookies'])..setBuvid3(), + BiliCookieJar.fromJson(json['cookies']), json['accessKey'], json['refresh'], (json['type'] as Iterable?)?.map((i) => AccountType.values[i]).toSet(),