This commit is contained in:
My-Responsitories
2025-03-11 13:59:31 +08:00
committed by bggRGjQaUbCoE
parent 66b547a904
commit 2556290a6e

View File

@@ -630,32 +630,36 @@ class VideoIntroController extends GetxController
..cid.value = cid
..danmakuCid.value = cid
..queryVideoUrl();
if (cover is String && cover.isNotEmpty) {
videoDetailCtr.videoItem['pic'] = cover;
if (this.bvid != bvid) {
if (cover is String && cover.isNotEmpty) {
videoDetailCtr.videoItem['pic'] = cover;
}
// 重新请求相关视频
if (videoDetailCtr.showRelatedVideo) {
try {
Get.find<RelatedController>(tag: heroTag)
..bvid = bvid
..queryData();
} catch (_) {}
}
// 重新请求评论
if (videoDetailCtr.showReply) {
try {
Get.find<VideoReplyController>(tag: heroTag)
..aid = aid
..onReload();
} catch (_) {}
}
hasLater.value = false;
this.bvid = bvid;
queryVideoIntro();
}
// 重新请求相关视频
if (videoDetailCtr.showRelatedVideo && isStein != true) {
try {
Get.find<RelatedController>(tag: heroTag)
..bvid = bvid
..queryData();
} catch (_) {}
}
// 重新请求评论
if (videoDetailCtr.showReply && isStein != true) {
try {
Get.find<VideoReplyController>(tag: heroTag)
..aid = aid
..onReload();
} catch (_) {}
}
hasLater.value = false;
this.bvid = bvid;
lastPlayCid.value = cid;
queryVideoIntro();
queryOnlineTotal();
}