diff --git a/backend/app/service/FeishuNotificationService.php b/backend/app/service/FeishuNotificationService.php index 04f328f..1eeecf1 100644 --- a/backend/app/service/FeishuNotificationService.php +++ b/backend/app/service/FeishuNotificationService.php @@ -154,15 +154,7 @@ class FeishuNotificationService return false; } - // 检查是否是申请人自己 - 发送文本消息而不是卡片 - error_log("🔍 自审批检查前: applicant_id=" . var_export($applicantId, true) . ", user_id=" . var_export($userId, true)); - - if ($applicantId && (int)$applicantId === (int)$userId) { - error_log("🔄 检测到自审批,发送文本通知而不是卡片"); - return $this->sendTextNotification($feishuUserId, $params); - } - - error_log("📨 发送卡片消息: 不是自审批"); + // 发送卡片消息(包括自审批场景) $card = $this->buildApprovalCard($params, $user->company_id); $messageId = $this->sendMessage($feishuUserId, $card, $orderId, $nodeId, $userId);