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

order

@@ -33,9 +33,12 @@ class AdminStatisticsController extends AdminBaseController{ @@ -33,9 +33,12 @@ class AdminStatisticsController extends AdminBaseController{
33 for ($i = 0; $i <= 15; $i++){ 33 for ($i = 0; $i <= 15; $i++){
34 $week[15-$i]=strtotime(date('Ymd',strtotime("-$i week"))); 34 $week[15-$i]=strtotime(date('Ymd',strtotime("-$i week")));
35 } 35 }
  36 + $where=array();
  37 + for ($i = 0; $i<15; $i++){
  38 + $where[$i]=['between',[$week[$i],$week[$i+1]]];
  39 + }
36 40
37 -  
38 - dump($week); 41 + dump($where);
39 42
40 $month=array(); 43 $month=array();
41 for ($i = 0; $i <= 24; $i++){ 44 for ($i = 0; $i <= 24; $i++){