mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -567,6 +567,9 @@ class VideoIntroController extends GetxController
|
||||
this.bvid = bvid;
|
||||
lastPlayCid.value = cid;
|
||||
queryVideoIntro();
|
||||
if (isShowOnlineTotal) {
|
||||
queryOnlineTotal();
|
||||
}
|
||||
}
|
||||
|
||||
void startTimer() {
|
||||
@@ -588,15 +591,15 @@ class VideoIntroController extends GetxController
|
||||
|
||||
// 查看同时在看人数
|
||||
Future queryOnlineTotal() async {
|
||||
// var result = await VideoHttp.onlineTotal(
|
||||
// aid: IdUtils.bv2av(bvid),
|
||||
// bvid: bvid,
|
||||
// cid: lastPlayCid.value,
|
||||
// );
|
||||
dynamic result = await GrpcRepo.playerOnline(
|
||||
dynamic result = await VideoHttp.onlineTotal(
|
||||
aid: IdUtils.bv2av(bvid),
|
||||
bvid: bvid,
|
||||
cid: lastPlayCid.value,
|
||||
);
|
||||
// dynamic result = await GrpcRepo.playerOnline(
|
||||
// aid: IdUtils.bv2av(bvid),
|
||||
// cid: lastPlayCid.value,
|
||||
// );
|
||||
if (result['status']) {
|
||||
total.value = result['data'];
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
|
||||
late final _coinKey = GlobalKey<ActionItemState>();
|
||||
late final _favKey = GlobalKey<ActionItemState>();
|
||||
late final _expandableCtr = ExpandableController(initialExpanded: false);
|
||||
final _expandableCtr = ExpandableController(initialExpanded: false);
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
||||
Reference in New Issue
Block a user