作者 董瑞恩

order

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