From 88ad3ab53da1b41fa0a347adb49e261617fe5a7a Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 1 Feb 2026 21:58:03 -0800 Subject: [PATCH] =?UTF-8?q?feat:=202.0=20API=20=E5=9F=9F=E5=90=8D=E4=BB=8E?= =?UTF-8?q?=20rwaapi.szaiai.com=20=E8=BF=81=E7=A7=BB=E5=88=B0=20mapi.szaia?= =?UTF-8?q?i.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mining-admin-web: .env.production, next.config.js fallback URL - mining-app: environment.dart baseUrl, update_config.dart checkUpdateUrl - docker-compose.2.0.yml: mining-admin-service UPLOAD_BASE_URL Co-Authored-By: Claude Opus 4.5 --- backend/services/docker-compose.2.0.yml | 2 +- frontend/mining-admin-web/.env.production | 4 ++-- frontend/mining-admin-web/next.config.js | 4 ++-- frontend/mining-app/lib/core/config/environment.dart | 2 +- .../mining-app/lib/core/updater/models/update_config.dart | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) 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,