diff --git a/lib/utils/accounts/account.dart b/lib/utils/accounts/account.dart index 2d4e5b3b..06f5fa5a 100644 --- a/lib/utils/accounts/account.dart +++ b/lib/utils/accounts/account.dart @@ -76,12 +76,10 @@ class LoginAccount implements Account { this.accessKey, this.refresh, [ Set? type, - ]) : type = type ?? {} { - cookieJar.setBuvid3(); - } + ]) : type = type ?? {}; factory LoginAccount.fromJson(Map json) => LoginAccount( - BiliCookieJar.fromJson(json['cookies']), + BiliCookieJar.fromJson(json['cookies'])..setBuvid3(), json['accessKey'], json['refresh'], (json['type'] as Iterable?)?.map((i) => AccountType.values[i]).toSet(),