Browse Source

设置当前工单

qiuenguang 1 year ago
parent
commit
c8c10a4c8e
1 changed files with 2 additions and 1 deletions
  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('工单_工艺资料')