From 115af99e9bdb6c18b8573bcb678b72f3814e92d5 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 22 Dec 2025 10:26:42 +0800 Subject: [PATCH] update --- app/Notifications/AuditEmailNotify.php | 10 ++++++---- app/Notifications/AuditResultEmailNotify.php | 10 ++++++---- app/Notifications/CancelEmailNotify.php | 5 +++-- app/Notifications/EmailNotify.php | 5 +++-- app/Notifications/VisitEmailNotify.php | 5 +++-- 5 files changed, 21 insertions(+), 14 deletions(-) diff --git a/app/Notifications/AuditEmailNotify.php b/app/Notifications/AuditEmailNotify.php index 6438f56..2fda332 100644 --- a/app/Notifications/AuditEmailNotify.php +++ b/app/Notifications/AuditEmailNotify.php @@ -50,7 +50,7 @@ class AuditEmailNotify extends Notification if ($this->isFirstAudit) { // 第一个审核人的邮件 return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('新的拜访审核通知 - ' . $visitData['name']) ->greeting('您好 ' . $notifiable->name . ',') ->line('您有一个新的拜访申请需要审核,访客 ' . $visitData['name'] . ' 预约于 ' . $visitData['date'] . ' 到访。') @@ -58,11 +58,12 @@ class AuditEmailNotify extends Notification ->line('拜访事由:' . ($visitData['reason'] ?? '无')) ->line('请及时审核此拜访申请。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } else { // 后续审核人的邮件 return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('拜访审核流转通知 - ' . $visitData['name']) ->greeting('您好 ' . $notifiable->name . ',') ->line('拜访申请 ' . $visitData['name'] . ' 预约于 ' . $visitData['date'] . ' 的审核已流转到您这里,上一级审核人:' . ($visitData['previous_admin'] ?? '') . '。') @@ -70,7 +71,8 @@ class AuditEmailNotify extends Notification ->line('拜访事由:' . ($visitData['reason'] ?? '无')) ->line('请及时处理此审核流转。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } } } diff --git a/app/Notifications/AuditResultEmailNotify.php b/app/Notifications/AuditResultEmailNotify.php index 8b56752..a7790a3 100644 --- a/app/Notifications/AuditResultEmailNotify.php +++ b/app/Notifications/AuditResultEmailNotify.php @@ -51,7 +51,7 @@ class AuditResultEmailNotify extends Notification if ($auditResult === '通过') { // 审核通过的邮件 return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('拜访申请审核通过通知 - ' . $visitData['name']) ->greeting('您好 ' . $visitData['visitor_name'] . ',') ->line('您的拜访申请已审核通过,预约于 ' . $visitData['date'] . ' 到访。') @@ -59,11 +59,12 @@ class AuditResultEmailNotify extends Notification ->line('公司名称:' . $visitData['company_name']) ->line('请按时到访,如有疑问请联系被访人。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } else { // 审核驳回的邮件 return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('拜访申请审核驳回通知 - ' . $visitData['name']) ->greeting('您好 ' . $visitData['visitor_name'] . ',') ->line('很抱歉,您的拜访申请未通过审核。') @@ -72,7 +73,8 @@ class AuditResultEmailNotify extends Notification ->line('公司名称:' . $visitData['company_name']) ->line('如有疑问,请联系被访人或重新提交申请。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } } } diff --git a/app/Notifications/CancelEmailNotify.php b/app/Notifications/CancelEmailNotify.php index 7b9071e..91e1456 100644 --- a/app/Notifications/CancelEmailNotify.php +++ b/app/Notifications/CancelEmailNotify.php @@ -45,7 +45,7 @@ class CancelEmailNotify extends Notification $visitData = $this->visitData; return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('拜访预约取消通知 - ' . $visitData['name']) ->greeting('您好 ' . $notifiable->name . ',') ->line('访客 ' . $visitData['name'] . ' 原预约于 ' . $visitData['date'] . ' 的拜访已取消。') @@ -53,7 +53,8 @@ class CancelEmailNotify extends Notification ->line('拜访事由:' . ($visitData['reason'] ?? '无')) ->line('如有疑问,请联系访客确认。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } } diff --git a/app/Notifications/EmailNotify.php b/app/Notifications/EmailNotify.php index 0b144fe..5c1e34f 100644 --- a/app/Notifications/EmailNotify.php +++ b/app/Notifications/EmailNotify.php @@ -44,11 +44,12 @@ class EmailNotify extends Notification public function toMail($notifiable) { return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject($notifiable->title) ->line($notifiable->content) ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } /** diff --git a/app/Notifications/VisitEmailNotify.php b/app/Notifications/VisitEmailNotify.php index 2aa55c8..5ff79f1 100644 --- a/app/Notifications/VisitEmailNotify.php +++ b/app/Notifications/VisitEmailNotify.php @@ -45,7 +45,7 @@ class VisitEmailNotify extends Notification $visitData = $this->visitData; return (new MailMessage) - ->from(config('mail.from.address'), 'tinge Suzhou HR') + ->from(config('mail.from.address'), 'Getinge Suzhou HR') ->subject('新的拜访预约通知 - ' . $visitData['name']) ->greeting('您好 ' . $notifiable->name . ',') ->line('您有一个新的拜访预约,访客 ' . $visitData['name'] . ' 预约于 ' . $visitData['date'] . ' 到访。') @@ -53,6 +53,7 @@ class VisitEmailNotify extends Notification ->line('拜访事由:' . ($visitData['reason'] ?? '无')) ->line('请及时处理此拜访预约。') ->salutation('') - ->line('Regards'); + ->line('Regards') + ->line('Getinge Suzhou HR'); } }