mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
fix: danmaku block
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user