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']);