From 08d588accec81f83651a372a4872df382e99e9f4 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 14:33:35 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=A3=80=E6=9F=A5=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/FeishuNotificationService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/service/FeishuNotificationService.php b/backend/app/service/FeishuNotificationService.php index 6c1b624..9bfb0c9 100644 --- a/backend/app/service/FeishuNotificationService.php +++ b/backend/app/service/FeishuNotificationService.php @@ -145,7 +145,9 @@ class FeishuNotificationService // 检查是否是申请人自己 - 发送文本消息而不是卡片 $applicantId = $params['applicant_id'] ?? null; - if ($applicantId && $applicantId == $userId) { + error_log("🔍 自审批检查: applicant_id=" . ($applicantId ?? 'null') . ", user_id={$userId}, match=" . (($applicantId == $userId) ? 'true' : 'false')); + + if ($applicantId && (int)$applicantId === (int)$userId) { error_log("🔄 检测到自审批,发送文本通知而不是卡片"); return $this->sendTextNotification($feishuUserId, $params); }