mod: 本地缓存历史记录状态
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user