mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
fix: pgc intro info
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -443,6 +443,14 @@ class BangumiIntroController extends CommonController {
|
|||||||
if (isLogin) {
|
if (isLogin) {
|
||||||
queryBangumiLikeCoinFav();
|
queryBangumiLikeCoinFav();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Get.find<VideoIntroController>(tag: Get.arguments['heroTag'])
|
||||||
|
..bvid = bvid
|
||||||
|
..lastPlayCid.value = cid
|
||||||
|
..queryVideoIntro()
|
||||||
|
..queryOnlineTotal();
|
||||||
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 追番
|
// 追番
|
||||||
|
|||||||
@@ -613,10 +613,8 @@ class VideoIntroController extends GetxController
|
|||||||
this.bvid = bvid;
|
this.bvid = bvid;
|
||||||
lastPlayCid.value = cid;
|
lastPlayCid.value = cid;
|
||||||
queryVideoIntro();
|
queryVideoIntro();
|
||||||
if (isShowOnlineTotal) {
|
|
||||||
queryOnlineTotal();
|
queryOnlineTotal();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void startTimer() {
|
void startTimer() {
|
||||||
if (isShowOnlineTotal) {
|
if (isShowOnlineTotal) {
|
||||||
@@ -634,6 +632,9 @@ class VideoIntroController extends GetxController
|
|||||||
|
|
||||||
// 查看同时在看人数
|
// 查看同时在看人数
|
||||||
Future queryOnlineTotal() async {
|
Future queryOnlineTotal() async {
|
||||||
|
if (isShowOnlineTotal.not) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
dynamic result = await VideoHttp.onlineTotal(
|
dynamic result = await VideoHttp.onlineTotal(
|
||||||
aid: IdUtils.bv2av(bvid),
|
aid: IdUtils.bv2av(bvid),
|
||||||
bvid: bvid,
|
bvid: bvid,
|
||||||
|
|||||||
Reference in New Issue
Block a user