cqp 1 сар өмнө
parent
commit
a69b6357cc

+ 1 - 1
app/Service/TeamService.php

@@ -189,7 +189,7 @@ class TeamService extends Service
         if(empty($data['man_list'])) return [false, '人员不能为空'];
         foreach ($data['man_list'] as $key => $value){
             if(empty($value['data_id'])) return [false, '人员不能为空'];
-            $data['man_list'][$key]['top_depart_id'] = $data['top_depart_id'];
+            $data['man_list'][$key]['top_depart_id'] = $user['top_depart_id'];
         }
         list($status, $msg) = $this->checkArrayRepeat($data['man_list'],'data_id','人员');
         if(! $status) return [false, $msg];