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

order

... ... @@ -33,9 +33,12 @@ class AdminStatisticsController extends AdminBaseController{
for ($i = 0; $i <= 15; $i++){
$week[15-$i]=strtotime(date('Ymd',strtotime("-$i week")));
}
$where=array();
for ($i = 0; $i<15; $i++){
$where[$i]=['between',[$week[$i],$week[$i+1]]];
}
dump($week);
dump($where);
$month=array();
for ($i = 0; $i <= 24; $i++){
... ...