From 094967cb02bf1a56eda780c00e19ddfc2762900b Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 14:37:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0applicant=5Fid?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BB=A5=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BusinessTripService: 传递 applicant_id 参数 - 确保自审批场景能正确发送文本消息而不是卡片 --- backend/app/service/BusinessTripService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/service/BusinessTripService.php b/backend/app/service/BusinessTripService.php index 9e951d8..138fe70 100644 --- a/backend/app/service/BusinessTripService.php +++ b/backend/app/service/BusinessTripService.php @@ -310,12 +310,13 @@ class BusinessTripService $notificationService->setAppByUser($approverId) ->sendApprovalNotification([ 'user_id' => $approverId, + 'applicant_id' => $approvalOrder->applicant_id, // 添加申请人ID用于自审批检测 'title' => '新的出差审批申请', 'applicant' => $businessTrip->user->name, 'type' => '出差申请', 'content' => $content, 'url' => $approvalUrl, - 'order_id' => $approvalOrder->id, // 添加 order_id 以显示审批按钮 + 'order_id' => $approvalOrder->id, ]); error_log("✅ 审批人通知成功: approver_id={$approverId}"); } catch (\Exception $e) {