...
|
...
|
@@ -33,9 +33,9 @@ class RoomController extends Controller |
|
|
'update_time'=>time()
|
|
|
]);
|
|
|
if($row->save()){
|
|
|
echo "room ".$room_id."has been reset to 2. \n";
|
|
|
echo date('Y-m-d H:i:s')." room ".$room_id." has been reset to 2. \n";
|
|
|
}else{
|
|
|
echo "room ".$room_id."reset failed. \n";
|
|
|
echo date('Y-m-d H:i:s')." room ".$room_id." reset failed. \n";
|
|
|
}
|
|
|
}
|
|
|
//状态为已结束 && 当前时间小于预告时间->标记成未开始
|
...
|
...
|
@@ -46,9 +46,9 @@ class RoomController extends Controller |
|
|
'update_time'=>time()
|
|
|
]);
|
|
|
if($row->save()){
|
|
|
echo "room ".$room_id."has been reset to 0. \n";
|
|
|
echo date('Y-m-d H:i:s')." room ".$room_id." has been reset to 0. \n";
|
|
|
}else{
|
|
|
echo "room ".$room_id."reset failed. \n";
|
|
|
echo date('Y-m-d H:i:s')." room ".$room_id." reset failed. \n";
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|