mod: 本地缓存历史记录状态

This commit is contained in:
guozhigq
2023-07-24 15:12:00 +08:00
parent ee973167a5
commit 4e64c74ee0
5 changed files with 32 additions and 1 deletions

View File

@ -54,6 +54,7 @@ class VideoDetailController extends GetxController
RxString bgCover = ''.obs;
Box user = GStrorage.user;
Box localCache = GStrorage.localCache;
@override
void onInit() {
@ -149,6 +150,9 @@ class VideoDetailController extends GetxController
if (user.get(UserBoxKey.userMid) == null) {
return;
}
if (localCache.get(LocalCacheKey.historyStatus) == true) {
return;
}
Duration progress = meeduPlayerController.position.value;
await VideoHttp.heartBeat(
bvid: bvid,