mod: 番剧状态查询,切换选集时评论问题修复

This commit is contained in:
guozhigq
2023-08-05 12:18:38 +08:00
parent 1454190f43
commit d4cf67bbc7
2 changed files with 30 additions and 23 deletions

View File

@ -96,13 +96,13 @@ class BangumiIntroController extends GetxController {
}
if (userLogin) {
// 获取点赞状态
// queryHasLikeVideo();
queryHasLikeVideo();
// 获取投币状态
// queryHasCoinVideo();
queryHasCoinVideo();
// 获取收藏状态
// queryHasFavVideo();
queryHasFavVideo();
//
// queryFollowStatus();
queryFollowStatus();
}
return result;
}
@ -340,9 +340,12 @@ class BangumiIntroController extends GetxController {
videoDetailCtr.cid = cid;
videoDetailCtr.queryVideoUrl();
// 重新请求评论
VideoReplyController videoReplyCtr =
Get.find<VideoReplyController>(tag: Get.arguments['heroTag']);
videoReplyCtr.aid = aid;
videoReplyCtr.queryReplyList(type: 'init');
try {
/// 未渲染回复组件时可能异常
VideoReplyController videoReplyCtr =
Get.find<VideoReplyController>(tag: Get.arguments['heroTag']);
videoReplyCtr.aid = aid;
videoReplyCtr.queryReplyList(type: 'init');
} catch (_) {}
}
}