正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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); |
-
请 注册 或 登录 后发表评论