Merge feature/mzl-dev: 添加自审批调试日志
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user