fix: 历史记录

This commit is contained in:
guozhigq
2023-08-16 19:23:29 +08:00
parent 62e46f645c
commit 4e0fde4c50
6 changed files with 66 additions and 50 deletions

View File

@ -10,7 +10,11 @@ class Data {
static Future historyStatus() async {
Box localCache = GStrorage.localCache;
Box user = GStrorage.user;
if (user.get(UserBoxKey.userMid) == null) {
return;
}
var res = await UserHttp.historyStatus();
localCache.put(LocalCacheKey.historyStatus, res.data['data']);
localCache.put(LocalCacheKey.historyPause, res.data['data']);
}
}

View File

@ -122,8 +122,8 @@ class SettingBoxKey {
}
class LocalCacheKey {
// 历史记录暂停状态 默认false
static const String historyStatus = 'historyStatus';
// 历史记录暂停状态 默认false 记录
static const String historyPause = 'historyPause';
}
class VideoBoxKey {