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