Your Name 3 tahun lalu
induk
melakukan
b600abd484
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      service/bill/lib/Cron.php

+ 8 - 1
service/bill/lib/Cron.php

@@ -483,7 +483,14 @@ class Cron
     }
     #归店统计
     public function shop_stat_api(){
-        $month = Dever::input('month', date('Y-m'));
+        $month = Dever::input('month');
+        $y = date('Y');
+        $m = date('m')-1;
+        if($month){
+            $month = $month;
+        }else{
+            $month = $y.'-'.'0'.$m;
+        }
         $start_time = $month .'-01 00:00:00';
         $end_time = date('Y-m-d', strtotime($start_time. ' +1 month -1 day')).' 23:59:59';
         $start = Dever::maketime($start_time);