mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 依赖升级
This commit is contained in:
@@ -25,10 +25,6 @@ class GStrorage {
|
||||
recVideo = await Hive.openBox('recVideo');
|
||||
// 登录用户信息
|
||||
userInfo = await Hive.openBox('userInfo');
|
||||
// 热搜关键词
|
||||
hotKeyword = await Hive.openBox('hotKeyword');
|
||||
// 搜索历史
|
||||
historyword = await Hive.openBox('historyWord');
|
||||
// 本地缓存
|
||||
localCache = await Hive.openBox('localCache');
|
||||
}
|
||||
@@ -43,6 +39,13 @@ class GStrorage {
|
||||
Hive.registerAdapter(HotSearchModelAdapter());
|
||||
Hive.registerAdapter(HotSearchItemAdapter());
|
||||
}
|
||||
|
||||
static Future<void> lazyInit() async {
|
||||
// 热搜关键词
|
||||
hotKeyword = await Hive.openBox('hotKeyword');
|
||||
// 搜索历史
|
||||
historyword = await Hive.openBox('historyWord');
|
||||
}
|
||||
}
|
||||
|
||||
// 约定 key
|
||||
|
||||
Reference in New Issue
Block a user