作者 董瑞恩

order

@@ -36,7 +36,9 @@ class AdminOrderController extends AdminBaseController{ @@ -36,7 +36,9 @@ class AdminOrderController extends AdminBaseController{
36 ->join('equipment b','a.mac_address=b.mac_address') 36 ->join('equipment b','a.mac_address=b.mac_address')
37 ->paginate(10)->items(function ($item){ 37 ->paginate(10)->items(function ($item){
38 $item['time']=($item['end_time']-$item['start_time'])/3600; 38 $item['time']=($item['end_time']-$item['start_time'])/3600;
  39 + return $item;
39 }); 40 });
  41 +
40 $this->assign('data',$data); 42 $this->assign('data',$data);
41 return $this->fetch(); 43 return $this->fetch();
42 } 44 }