Quellcode durchsuchen

设置当前工单

qiuenguang vor 1 Jahr
Ursprung
Commit
c8c10a4c8e
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      application/api/controller/ReportingWork.php

+ 2 - 1
application/api/controller/ReportingWork.php

@@ -514,7 +514,7 @@ class ReportingWork extends Api
         if ($start < date('Y-m-d H:15:00', time())) {
             $start = date('Y-m-d H:00:00', time());
         } elseif ($start > date('Y-m-d H:45:00', time())) {
-            $start = date('Y-m-d H+1:00:00', time());
+            $start = date('Y-m-d H:00:00', time());
         } else {
             $start = date('Y-m-d H:30:00', time());
         }
@@ -540,6 +540,7 @@ class ReportingWork extends Api
             ];
             array_push($data,$workTime);
         }
+        halt($data);
         foreach ($data as $key=>$value){
             unset($value['id']);
             $sql = \db('工单_工艺资料')