qiuenguang пре 1 година
родитељ
комит
b1455cdf46
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      application/api/controller/Facility.php

+ 1 - 6
application/api/controller/Facility.php

@@ -503,12 +503,7 @@ class Facility extends Api
         if (empty($machine) || empty($workOrder) || empty($team)){
             $this->success('');
         }
-        $newTime = date('Y-m-d H:i:s',time());
-        if ($newTime < date('Y-m-d 08:30:00')) {
-            $sczlTime = date('Y-m-d 00:00:00', time() - 86400);
-        }else{
-            $sczlTime = date('Y-m-d 00:00:00');
-        }
+        $sczlTime = date('Y-m-d 00:00:00',time());
         $name = \db('工单_基本资料')->where('Gd_gdbh',$workOrder)->field('rtrim(Gd_cpmc) as productName')->find();
         $where = [
             'sczl_gdbh' => $workOrder,