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

order

@@ -33,7 +33,7 @@ class AdminStatisticsController extends AdminBaseController{ @@ -33,7 +33,7 @@ class AdminStatisticsController extends AdminBaseController{
33 $week1 = strtotime(date('Ymd',strtotime('-1 week'))); 33 $week1 = strtotime(date('Ymd',strtotime('-1 week')));
34 echo date('Y-m-d H:i:s',$week1); 34 echo date('Y-m-d H:i:s',$week1);
35 $week=array(); 35 $week=array();
36 - for ($i = 0; $i < 30; $i++){ 36 + for ($i = 0; $i <= 30; $i++){
37 $week[30-$i]=strtotime(date('Ymd',strtotime("-$i week"))); 37 $week[30-$i]=strtotime(date('Ymd',strtotime("-$i week")));
38 } 38 }
39 dump($week); 39 dump($week);