From 16a3e76588520e85d1b5d8bcd351eb2a1b6fed0c Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 23 Dec 2025 05:15:20 -0800 Subject: [PATCH] =?UTF-8?q?fix(authorization):=20=E9=85=8D=E7=BD=AE=20REWA?= =?UTF-8?q?RD=5FSERVICE=5FURL=20=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 .env.example 添加 REWARD_SERVICE_URL 配置 - 在 docker-compose.yml 添加 REWARD_SERVICE_URL 和 REWARD_SERVICE_ENABLED 环境变量 - 在 docker-compose.windows.yml 添加相同配置 - authorization-service 依赖 reward-service 启动 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/docker-compose.windows.yml | 4 ++++ backend/services/authorization-service/.env.example | 1 + backend/services/docker-compose.yml | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/backend/docker-compose.windows.yml b/backend/docker-compose.windows.yml index 33611fae..fac11db8 100644 --- a/backend/docker-compose.windows.yml +++ b/backend/docker-compose.windows.yml @@ -677,6 +677,8 @@ services: REFERRAL_SERVICE_ENABLED: "true" IDENTITY_SERVICE_URL: http://identity-service:3000 IDENTITY_SERVICE_ENABLED: "true" + REWARD_SERVICE_URL: http://reward-service:3005 + REWARD_SERVICE_ENABLED: "true" depends_on: postgres: condition: service_healthy @@ -684,6 +686,8 @@ services: condition: service_healthy kafka: condition: service_healthy + reward-service: + condition: service_healthy networks: - rwa-network diff --git a/backend/services/authorization-service/.env.example b/backend/services/authorization-service/.env.example index 9a1cf8c1..bb06f4ee 100644 --- a/backend/services/authorization-service/.env.example +++ b/backend/services/authorization-service/.env.example @@ -22,3 +22,4 @@ JWT_EXPIRES_IN=7d # Service URLs IDENTITY_SERVICE_URL=http://localhost:3000 REFERRAL_SERVICE_URL=http://localhost:3001 +REWARD_SERVICE_URL=http://localhost:3005 diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index 935830b8..922e852e 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -499,6 +499,9 @@ services: # Identity Service - 用于获取用户信息(昵称、头像) - IDENTITY_SERVICE_URL=http://rwa-identity-service:3000 - IDENTITY_SERVICE_ENABLED=true + # Reward Service - 用于获取月度收益数据 + - REWARD_SERVICE_URL=http://rwa-reward-service:3005 + - REWARD_SERVICE_ENABLED=true depends_on: postgres: condition: service_healthy @@ -510,6 +513,8 @@ services: condition: service_healthy identity-service: condition: service_healthy + reward-service: + condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3009/api/v1/health"] interval: 30s