Authored by xiaofeng.yao@yoho.cn

刷房间状态脚本修改

@@ -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 }