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); }