cqp 1 ماه پیش
والد
کامیت
a69b6357cc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Service/TeamService.php

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