fix: danmaku block

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-26 18:10:30 +08:00
parent d3c7b3830f
commit 79da08b285
59 changed files with 207 additions and 303 deletions

View File

@@ -1,4 +1,3 @@
import 'package:hive/hive.dart';
import 'package:PiliPalaX/http/user.dart';
import 'storage.dart';
@@ -9,14 +8,12 @@ class Data {
}
static Future historyStatus() async {
Box localCache = GStorage.localCache;
Box userInfoCache = GStorage.userInfo;
if (userInfoCache.get('userInfoCache') == null) {
if (GStorage.userInfo.get('userInfoCache') == null) {
return;
}
var res = await UserHttp.historyStatus();
if (res['status']) {
localCache.put(LocalCacheKey.historyPause, res['data']);
GStorage.localCache.put(LocalCacheKey.historyPause, res['data']);
}
}
}