作者 ZhengBing He

合并分支 'workorder' 到 'master'

dingding



查看合并请求 !2368
@@ -100,14 +100,14 @@ class Tickets extends Base @@ -100,14 +100,14 @@ class Tickets extends Base
100 if ($type == 'finish') 100 if ($type == 'finish')
101 { 101 {
102 // 所有技术完成了工单,通知第一负责人 和 工单的提交人 102 // 所有技术完成了工单,通知第一负责人 和 工单的提交人
103 - $ding->userIds = [$this->project->engineer_id]; 103 + $userIds = [$this->project->engineer_id];
104 if ($this->submit_side == 1) { 104 if ($this->submit_side == 1) {
105 // A 端提的,还要通知提交人 105 // A 端提的,还要通知提交人
106 - $ding->userIds[] = $this->submit_user_id; 106 + $userIds[] = $this->submit_user_id;
107 // 去重 107 // 去重
108 - $ding->userIds = array_unique($ding->userIds); 108 + $userIds = array_unique($userIds);
109 } 109 }
110 - $ding->userIds = json_encode($ding->userIds); 110 + $ding->userIds = json_encode($userIds);
111 $ding->msgParam = json_encode([ 111 $ding->msgParam = json_encode([
112 'text' => "工单(ID: {$this->id}),已经全部完成,请访问查看详情!", 112 'text' => "工单(ID: {$this->id}),已经全部完成,请访问查看详情!",
113 'title' => 'AI协同工单 - ' . $this->project->title, 113 'title' => 'AI协同工单 - ' . $this->project->title,