作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

order

@@ -38,8 +38,8 @@ class AdminStatisticsController extends AdminBaseController{ @@ -38,8 +38,8 @@ class AdminStatisticsController extends AdminBaseController{
38 $hospital=array(); 38 $hospital=array();
39 $num=array(); 39 $num=array();
40 foreach ($data as $k=>$v){ 40 foreach ($data as $k=>$v){
41 - $hospital[]=$v['hospital'];  
42 - $num[]=$v['num']; 41 + $hospital[$k]=$v['hospital'];
  42 + $num[$k]=$v['num'];
43 } 43 }
44 dump($hospital); 44 dump($hospital);
45 dump($num); 45 dump($num);