mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 12:36:27 +08:00
@@ -73,10 +73,12 @@ class LoginAccount implements Account {
|
||||
|
||||
LoginAccount(this.cookieJar, this.accessKey, this.refresh,
|
||||
[Set<AccountType>? type])
|
||||
: type = type ?? {};
|
||||
: type = type ?? {} {
|
||||
cookieJar.setBuvid3();
|
||||
}
|
||||
|
||||
LoginAccount.fromJson(Map json) {
|
||||
cookieJar = BiliCookieJar.fromJson(json['cookies']);
|
||||
cookieJar = BiliCookieJar.fromJson(json['cookies'])..setBuvid3();
|
||||
accessKey = json['accessKey'];
|
||||
refresh = json['refresh'];
|
||||
type = (json['type'] as Iterable?)
|
||||
|
||||
Reference in New Issue
Block a user