fix: 在线观看人数字段类型
This commit is contained in:
@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user