mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
@@ -15,7 +15,7 @@ abstract class Account {
|
||||
late String csrf;
|
||||
final Map<String, String> headers = const {};
|
||||
|
||||
// bool activited = false;
|
||||
bool activited = false;
|
||||
|
||||
Future<void> delete();
|
||||
Future<void> onChange();
|
||||
@@ -40,6 +40,9 @@ class LoginAccount implements Account {
|
||||
@HiveField(3)
|
||||
late final Set<AccountType> type;
|
||||
|
||||
@override
|
||||
bool activited = false;
|
||||
|
||||
@override
|
||||
late final int mid = int.parse(_midStr);
|
||||
|
||||
@@ -113,6 +116,9 @@ class AnonymousAccount implements Account {
|
||||
@override
|
||||
final Map<String, String> headers = const {};
|
||||
|
||||
@override
|
||||
bool activited = false;
|
||||
|
||||
@override
|
||||
Future<void> delete() async {
|
||||
await cookieJar.deleteAll();
|
||||
|
||||
Reference in New Issue
Block a user