panhui 6 gadi atpakaļ
vecāks
revīzija
1a7396be6f
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      lib/pages/roomInfo.dart

+ 4 - 4
lib/pages/roomInfo.dart

@@ -73,10 +73,10 @@ class RoomInfoState extends State<RoomInfo>
     Result res = await HttpManager.get("houseInfo/getPlayerNum",
         data: {"id": widget.roomId});
     if (res.success) {
-      // if (houseInfo.statusFlag == 0 && res.data["statusFlag"] == 2) {
-      //   showStart();
-      //   timer.cancel();
-      // }
+      if (houseInfo.statusFlag == 0 && res.data["statusFlag"] == 2) {
+        showStart();
+        // timer.cancel();
+      }
       setState(() {
         houseInfo.playerNumber = res.data["playerNumber"];
         houseInfo.statusFlag = res.data["statusFlag"];