sunhao 5 years ago
parent
commit
73e45bce6f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/OrderRateByDayHistory.php

+ 1 - 1
app/Console/Commands/OrderRateByDayHistory.php

@@ -64,7 +64,7 @@ class OrderRateByDayHistory extends Command {
64 64
         #当前月
65 65
         $month = date('Y-m', strtotime($date));
66 66
         #当月1号
67
-        $month_first = date('Y-m-1', strtotime($date));
67
+        $month_first = date('Y-m-01', strtotime($date));
68 68
         $data = array();
69 69
         #如果是昨天的数据(或昨天是当月一号)直接插入
70 70
         if($idate == $date || $date == $month_first){