diff --git a/backend/services/authorization-service/src/infrastructure/kafka/event-consumer.controller.ts b/backend/services/authorization-service/src/infrastructure/kafka/event-consumer.controller.ts index 836b18b8..4a808682 100644 --- a/backend/services/authorization-service/src/infrastructure/kafka/event-consumer.controller.ts +++ b/backend/services/authorization-service/src/infrastructure/kafka/event-consumer.controller.ts @@ -145,12 +145,11 @@ export class EventConsumerController { UserId.create(userId, teamStats.accountSequence), ) + // 3. 处理每个授权(如果有的话) if (authorizations.length === 0) { - this.logger.debug(`[PLANTING] User ${userId} has no authorizations`) - return + this.logger.debug(`[PLANTING] User ${userId} has no authorizations, skipping individual auth processing`) } - // 3. 处理每个授权 for (const auth of authorizations) { this.logger.debug(`[PLANTING] Processing authorization: ${auth.authorizationId.value}, role=${auth.roleType}, benefitActive=${auth.benefitActive}, status=${auth.status}`)