cqp 2 сар өмнө
parent
commit
47e00d06bd

+ 1 - 1
app/Service/StatisticService.php

@@ -376,7 +376,7 @@ class StatisticService extends Service
             if(is_null($return)) return [false, '年度格式错误'];
             list($data['month_start'], $data['month_end']) = $return;
         }else{
-            if(isset($data['time'])){
+            if(isset($data['time']) && ! empty($data['time'])){
                 $start = $this->changeDateToDate($data['time'][0]);
                 $end = $this->changeDateToDate($data['time'][1], true);
                 $data['month_start'] = date("Y-m-d",$start);