...
|
...
|
@@ -46,15 +46,15 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
|
|
|
//周统计
|
|
|
$week=array();
|
|
|
for ($i = 0; $i <= 15; $i++){
|
|
|
for ($i = 0; $i <= 30; $i++){
|
|
|
$week[15-$i]=strtotime(date('Ymd',strtotime("-$i week")));
|
|
|
}
|
|
|
$Week=array();
|
|
|
for ($i = 0; $i<15; $i++){
|
|
|
for ($i = 0; $i<30; $i++){
|
|
|
$Week[$i]=[$week[$i],$week[$i+1]];
|
|
|
}
|
|
|
$Week_statistics=array();
|
|
|
for ($i = 0; $i<15; $i++){
|
|
|
for ($i = 0; $i<30; $i++){
|
|
|
$Week_statistics[]=Db::name('order')->where('start_time','between',$Week[$i])->count();
|
|
|
}
|
|
|
$this->assign('weekData',json_encode($Week_statistics));
|
...
|
...
|
|