Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-03 14:13:31 +08:00
parent 18f5ddd937
commit 8414c0f71f
2 changed files with 5 additions and 2 deletions

View File

@@ -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?)