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;
+    }
 }