cqpCow 1 年之前
父節點
當前提交
099cec3b0e
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 1 0
      app/Service/ConstructionService.php
  2. 8 0
      app/Service/Service.php

+ 1 - 0
app/Service/ConstructionService.php

@@ -116,6 +116,7 @@ class ConstructionService extends Service
             DB::rollBack();
             return [false,$exception->getMessage()];
         }
+//        $params = $this->getDataFile($data);
 
         return [true,''];
     }

+ 8 - 0
app/Service/Service.php

@@ -403,4 +403,12 @@ class Service
 
         return $childIds;
     }
+
+    public function getDataFile($data){
+        foreach ($data as $key => $value){
+            if($key == 'depart_id' || $key == 'top_depart_id') unset($data[$key]);
+        }
+
+        return $data;
+    }
 }