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

order

... ... @@ -27,11 +27,16 @@ class AdminStatisticsController extends AdminBaseController{
public function index(){
$week1 = strtotime(date('Ymd',strtotime('-0 week')));//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
echo date('Y-m-d H:i:s',$week1)."</br>";
$week = strtotime(date('Ymd',strtotime('-1 week')));
echo date('Y-m-d H:i:s',$week);
$week0 = strtotime(date('Ymd',strtotime('-0 week')));//把周日当做是一个礼拜的开始,如果想把周一当做是一个礼拜的开始,就把Sunday换成Mondy
echo date('Y-m-d H:i:s',$week0)."</br>";
$week1 = strtotime(date('Ymd',strtotime('-1 week')));
echo date('Y-m-d H:i:s',$week1);
$week=array();
for ($i = 0; $i < 30; $i++){
$week[30-$i]=strtotime(date('Ymd',strtotime("-$i week")));
}
dump($week);
return $this->fetch();
}
... ...