diff --git a/backend/services/docker-compose.2.0.yml b/backend/services/docker-compose.2.0.yml index 68492b7a..4b8c6c8d 100644 --- a/backend/services/docker-compose.2.0.yml +++ b/backend/services/docker-compose.2.0.yml @@ -287,7 +287,7 @@ services: AUTH_SERVICE_URL: http://auth-service:3024 JWT_SECRET: ${ADMIN_JWT_SECRET:-your-admin-jwt-secret-change-in-production} # APK 下载地址前缀(通过 Kong 网关 /mining-admin 路由访问) - UPLOAD_BASE_URL: https://rwaapi.szaiai.com/mining-admin/downloads + UPLOAD_BASE_URL: https://mapi.szaiai.com/mining-admin/downloads UPLOAD_DIR: ./uploads volumes: - mining-admin-uploads:/app/uploads diff --git a/frontend/mining-admin-web/.env.production b/frontend/mining-admin-web/.env.production index 1be8ff7f..3cd5c968 100644 --- a/frontend/mining-admin-web/.env.production +++ b/frontend/mining-admin-web/.env.production @@ -1,3 +1,3 @@ -NEXT_PUBLIC_API_URL=https://rwaapi.szaiai.com/api/v2/mining-admin -TRADING_SERVICE_URL=https://rwaapi.szaiai.com/api/v2/trading +NEXT_PUBLIC_API_URL=https://mapi.szaiai.com/api/v2/mining-admin +TRADING_SERVICE_URL=https://mapi.szaiai.com/api/v2/trading NEXT_PUBLIC_APP_NAME=挖矿管理后台 diff --git a/frontend/mining-admin-web/next.config.js b/frontend/mining-admin-web/next.config.js index ea43d815..696a9ded 100644 --- a/frontend/mining-admin-web/next.config.js +++ b/frontend/mining-admin-web/next.config.js @@ -4,9 +4,9 @@ const nextConfig = { output: 'standalone', async rewrites() { // 获取 API 基础 URL(Kong 网关地址) - // 生产环境: https://rwaapi.szaiai.com + // 生产环境: https://mapi.szaiai.com // 开发环境: http://localhost:3023 (mining-admin-service) - const apiGatewayUrl = process.env.API_GATEWAY_URL || 'https://rwaapi.szaiai.com'; + const apiGatewayUrl = process.env.API_GATEWAY_URL || 'https://mapi.szaiai.com'; const miningAdminUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3023'; const tradingServiceUrl = process.env.TRADING_SERVICE_URL || 'http://localhost:3022'; const miningServiceUrl = process.env.MINING_SERVICE_URL || 'http://localhost:3021'; diff --git a/frontend/mining-app/lib/core/config/environment.dart b/frontend/mining-app/lib/core/config/environment.dart index 68f53c45..53f88891 100644 --- a/frontend/mining-app/lib/core/config/environment.dart +++ b/frontend/mining-app/lib/core/config/environment.dart @@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart'; class EnvironmentConfig { // API 基础地址 - Kong 网关 - static const String baseUrl = 'https://rwaapi.szaiai.com'; + static const String baseUrl = 'https://mapi.szaiai.com'; // 是否为调试模式 static bool get isDebug => kDebugMode; diff --git a/frontend/mining-app/lib/core/updater/models/update_config.dart b/frontend/mining-app/lib/core/updater/models/update_config.dart index 9f6d4c05..f526790e 100644 --- a/frontend/mining-app/lib/core/updater/models/update_config.dart +++ b/frontend/mining-app/lib/core/updater/models/update_config.dart @@ -25,7 +25,7 @@ class UpdateConfig { /// Mining App 默认配置 static const mining = UpdateConfig( - checkUpdateUrl: 'https://rwaapi.szaiai.com/mining-admin/api/app/version/check', + checkUpdateUrl: 'https://mapi.szaiai.com/mining-admin/api/app/version/check', packageName: 'com.durianqueen.mining', checkIntervalMinutes: 60, autoCheck: true,