fix: 在线观看人数字段类型

This commit is contained in:
guozhigq
2023-08-31 00:08:57 +08:00
parent a304df2670
commit 4f6dd68954
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class VideoIntroController extends GetxController {
// 同时观看 // 同时观看
bool isShowOnlineTotal = false; bool isShowOnlineTotal = false;
RxInt totel = 1.obs; RxString total = '1'.obs;
Timer? timer; Timer? timer;
bool isPaused = false; bool isPaused = false;
@ -473,7 +473,7 @@ class VideoIntroController extends GetxController {
cid: lastPlayCid.value, cid: lastPlayCid.value,
); );
if (result['status']) { 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) if (videoIntroController.isShowOnlineTotal)
Obx( Obx(
() => Text( () => Text(
'${videoIntroController.totel.value}人在看', '${videoIntroController.total.value}人在看',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: t.colorScheme.outline, color: t.colorScheme.outline,