Authored by xiaofeng.yao@yoho.cn

修改后台脚本打印日志

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