From 09726a4143a3cae2c69b8ce763553ab313bd24e9 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 31 Oct 2022 19:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E9=BB=98=E8=AE=A4=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Notifications/WorkOrderNotification.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Notifications/WorkOrderNotification.php b/app/Notifications/WorkOrderNotification.php index a83ce46..4cd6e60 100644 --- a/app/Notifications/WorkOrderNotification.php +++ b/app/Notifications/WorkOrderNotification.php @@ -70,10 +70,11 @@ public function toGroup($notifiable) $module->makeVisible(['wecom_key']); if ($module->wecom_key == null) { - return; + $wecom_key = config('settings.wecom.robot_hook.default'); + } else { + $wecom_key = $module->wecom_key; } - $wecom_key = $module->wecom_key; // 隐藏字段 $module->makeHidden(['wecom_key']);