fix: pgc intro info

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-19 12:38:49 +08:00
parent f50da73cc7
commit 44622c9a0b
2 changed files with 12 additions and 3 deletions

View File

@@ -443,6 +443,14 @@ class BangumiIntroController extends CommonController {
if (isLogin) {
queryBangumiLikeCoinFav();
}
try {
Get.find<VideoIntroController>(tag: Get.arguments['heroTag'])
..bvid = bvid
..lastPlayCid.value = cid
..queryVideoIntro()
..queryOnlineTotal();
} catch (_) {}
}
// 追番

View File

@@ -613,9 +613,7 @@ class VideoIntroController extends GetxController
this.bvid = bvid;
lastPlayCid.value = cid;
queryVideoIntro();
if (isShowOnlineTotal) {
queryOnlineTotal();
}
queryOnlineTotal();
}
void startTimer() {
@@ -634,6 +632,9 @@ class VideoIntroController extends GetxController
// 查看同时在看人数
Future queryOnlineTotal() async {
if (isShowOnlineTotal.not) {
return;
}
dynamic result = await VideoHttp.onlineTotal(
aid: IdUtils.bv2av(bvid),
bvid: bvid,