Merge branch 'fix' into alpha

This commit is contained in:
guozhigq
2023-08-31 09:56:15 +08:00
6 changed files with 31 additions and 17 deletions

View File

@ -55,7 +55,7 @@ class VideoIntroController extends GetxController {
// 同时观看
bool isShowOnlineTotal = false;
RxInt totel = 1.obs;
RxString total = '1'.obs;
Timer? timer;
bool isPaused = false;
@ -474,7 +474,7 @@ class VideoIntroController extends GetxController {
cid: lastPlayCid.value,
);
if (result['status']) {
totel.value = int.parse(result['data']['total']);
total.value = result['data']['total'];
}
}

View File

@ -312,7 +312,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
if (videoIntroController.isShowOnlineTotal)
Obx(
() => Text(
'${videoIntroController.totel.value}人在看',
'${videoIntroController.total.value}人在看',
style: TextStyle(
fontSize: 12,
color: t.colorScheme.outline,