Revert "opt: buvid3"

This reverts commit 17ea416c98.
This commit is contained in:
bggRGjQaUbCoE
2025-05-31 20:02:20 +08:00
parent 91fe0492c1
commit 0fb01f1b7c

View File

@@ -76,12 +76,10 @@ class LoginAccount implements Account {
this.accessKey, this.accessKey,
this.refresh, [ this.refresh, [
Set<AccountType>? type, Set<AccountType>? type,
]) : type = type ?? {} { ]) : type = type ?? {};
cookieJar.setBuvid3();
}
factory LoginAccount.fromJson(Map<String, dynamic> json) => LoginAccount( factory LoginAccount.fromJson(Map<String, dynamic> json) => LoginAccount(
BiliCookieJar.fromJson(json['cookies']), BiliCookieJar.fromJson(json['cookies'])..setBuvid3(),
json['accessKey'], json['accessKey'],
json['refresh'], json['refresh'],
(json['type'] as Iterable?)?.map((i) => AccountType.values[i]).toSet(), (json['type'] as Iterable?)?.map((i) => AccountType.values[i]).toSet(),