cqp hace 12 horas
padre
commit
1427e3cb9b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Service/TPlusServerService.php

+ 2 - 2
app/Service/TPlusServerService.php

@@ -1410,8 +1410,8 @@ class TPlusServerService extends Service
 
     public function synItemRoad($data, $user){
         if(empty($data['crt_time'][0]) || empty($data['crt_time'][1])) return [false, '同步时间不能为空'];
-        $start_time = strtotime($data['crt_time'][0] . "-01");
-        $end_time = strtotime(date('Y-m-t', strtotime($data['crt_time'][1] . '-01')) . ' 00:00:00');
+        $start_time = $data['crt_time'][0] / 1000;
+        $end_time = $data['crt_time'][0] / 1000;
         list($bool, $bool_msg) = $this->isWithinMonths($start_time, $end_time);
         if(! $bool) return [false, $bool_msg];