mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: buvid3
This commit is contained in:
@@ -76,10 +76,12 @@ 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'])..setBuvid3(),
|
BiliCookieJar.fromJson(json['cookies']),
|
||||||
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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user