From e4f2a61ecb855a0139da885760fabf11f8eb4349 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 23 Dec 2025 01:31:45 -0800 Subject: [PATCH] =?UTF-8?q?fix(authorization-service):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20identity-service=20=E8=BF=9E=E6=8E=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit authorization-service 缺少 IDENTITY_SERVICE_URL 和 IDENTITY_SERVICE_ENABLED 环境变量配置,导致无法获取用户信息(昵称、头像)。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/docker-compose.windows.yml | 2 ++ backend/services/docker-compose.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/backend/docker-compose.windows.yml b/backend/docker-compose.windows.yml index 8a442dab..33611fae 100644 --- a/backend/docker-compose.windows.yml +++ b/backend/docker-compose.windows.yml @@ -675,6 +675,8 @@ services: KAFKA_GROUP_ID: authorization-service-group REFERRAL_SERVICE_URL: http://referral-service:3004 REFERRAL_SERVICE_ENABLED: "true" + IDENTITY_SERVICE_URL: http://identity-service:3000 + IDENTITY_SERVICE_ENABLED: "true" depends_on: postgres: condition: service_healthy diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index aeadc6e2..935830b8 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -496,6 +496,9 @@ services: # Referral Service - 用于获取团队统计数据 - REFERRAL_SERVICE_URL=http://rwa-referral-service:3004 - REFERRAL_SERVICE_ENABLED=true + # Identity Service - 用于获取用户信息(昵称、头像) + - IDENTITY_SERVICE_URL=http://rwa-identity-service:3000 + - IDENTITY_SERVICE_ENABLED=true depends_on: postgres: condition: service_healthy @@ -505,6 +508,8 @@ services: condition: service_started referral-service: condition: service_healthy + identity-service: + condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3009/api/v1/health"] interval: 30s