Showing
1 changed file
with
2 additions
and
2 deletions
@@ -17,7 +17,6 @@ class RoomController extends Controller | @@ -17,7 +17,6 @@ class RoomController extends Controller | ||
17 | public function actionStat(){ | 17 | public function actionStat(){ |
18 | while(true){ | 18 | while(true){ |
19 | 19 | ||
20 | - | ||
21 | //获取未开始的房间 | 20 | //获取未开始的房间 |
22 | $result = Room::find() | 21 | $result = Room::find() |
23 | ->where(['living'=>0]) | 22 | ->where(['living'=>0]) |
@@ -41,7 +40,8 @@ class RoomController extends Controller | @@ -41,7 +40,8 @@ class RoomController extends Controller | ||
41 | } | 40 | } |
42 | } | 41 | } |
43 | } | 42 | } |
44 | - } | ||
45 | sleep(10); | 43 | sleep(10); |
46 | } | 44 | } |
45 | + | ||
46 | + } | ||
47 | } | 47 | } |
-
Please register or login to post a comment