From 09aecaba285a1e7ec396f6e1ac3a99a9b08c5588 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 10 Jan 2024 12:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Model/Task.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index 9b5ddd1..6e477c7 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -518,7 +518,14 @@ class Task extends CommonModel array_push($transferred,$task['exchange_list'][0]); $data['transferred']=implode(',',$transferred); $executorCode=$task['exchange_list'][0]; + unset($task['exchange_list'][0]); + if($task['exchange_list']){ + $task['exchange_list']=implode(',',$task['exchange_list']); + }else{ + $task['exchange_list']=''; + } 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');