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