作者 ZhengBing He

合并分支 'workorder' 到 'master'

dingding



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