From 4e324bd199a034067bd9fdab31bb80f50fddd267 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Thu, 18 Jul 2019 16:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/project/behavior/Task.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/project/behavior/Task.php b/application/project/behavior/Task.php index 750ad37..5c401c7 100644 --- a/application/project/behavior/Task.php +++ b/application/project/behavior/Task.php @@ -264,7 +264,9 @@ class Task } } //通知所有组织内的成员 - $project = \app\common\Model\Project::where(['code' => $task['project_code']])->field('organization_code')->find(); - $messageService->sendToGroup($project['organization_code'], $socketGroupMessage, 'organization:task'); + if (isOpenNoticePush()) { + $project = \app\common\Model\Project::where(['code' => $task['project_code']])->field('organization_code')->find(); + $messageService->sendToGroup($project['organization_code'], $socketGroupMessage, 'organization:task'); + } } }