feat(player): 切集刷新互动计数统计
This commit is contained in:
1 parent
37353dac15
commit
188811fde6
11 files changed
+694
-20
No files matched your search
@@ -151,6 +151,14 @@ extension _PlayerViewActions on _PlayerPageState {
|
||||
);
|
||||
}
|
||||
if (result.isSuccess) {
|
||||
final likeCount = interactions.episodeLikeCount(episode.id);
|
||||
if (likeCount != null) {
|
||||
logic.applyEpisodeLikeState(
|
||||
episode.id,
|
||||
liked: interactions.isEpisodeLiked(episode.id),
|
||||
likeCount: likeCount,
|
||||
);
|
||||
}
|
||||
_refreshLikeState();
|
||||
return;
|
||||
}
|
||||
@@ -171,7 +179,7 @@ extension _PlayerViewActions on _PlayerPageState {
|
||||
if (ok) {
|
||||
final nowSaved = favorites.isSaved(drama.id);
|
||||
if (nowSaved != wasSaved) {
|
||||
_applyFavoriteDelta(drama.id, nowSaved: nowSaved);
|
||||
_applyFavoriteDelta(drama, nowSaved: nowSaved);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user