fix: 历史记录
This commit is contained in:
@ -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']);
|
||||
}
|
||||
}
|
||||
|
@ -122,8 +122,8 @@ class SettingBoxKey {
|
||||
}
|
||||
|
||||
class LocalCacheKey {
|
||||
// 历史记录暂停状态 默认false
|
||||
static const String historyStatus = 'historyStatus';
|
||||
// 历史记录暂停状态 默认false 记录
|
||||
static const String historyPause = 'historyPause';
|
||||
}
|
||||
|
||||
class VideoBoxKey {
|
||||
|
Reference in New Issue
Block a user