diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index d8b6327..9b5ddd1 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -517,7 +517,8 @@ class Task extends CommonModel $transferred=$task['transferred']; array_push($transferred,$task['exchange_list'][0]); $data['transferred']=implode(',',$transferred); - $data['assign_to']=$task['exchange_list'][0]; + $executorCode=$task['exchange_list'][0]; + TaskMember::inviteMember($executorCode, $taskCode, 1); self::where('id',$task['id'])->update($data); }else{ $code= TaskStages::where('project_code',$task['project_code'])->where('name','已完成')->where('deleted',0)->value('code');