From 7b7c9cd9f690dc62c968df0c6d43cb2b0223b8c5 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 29 Jan 2026 12:30:52 -0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(mobile-upgrade):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=82=A1=E8=A1=8CApp=E7=89=88=E6=9C=AC=E7=AE=A1?= =?UTF-8?q?=E7=90=86API=E8=B7=AF=E5=BE=84=E5=8C=B9=E9=85=8DKong=E8=B7=AF?= =?UTF-8?q?=E7=94=B1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5ef09924481b1e67e1a35b07a057c8c14a02e88f. --- frontend/mobile-upgrade/.env.production | 2 +- .../mobile-upgrade/src/infrastructure/http/api-client.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/mobile-upgrade/.env.production b/frontend/mobile-upgrade/.env.production index fdf7f525..94532ceb 100644 --- a/frontend/mobile-upgrade/.env.production +++ b/frontend/mobile-upgrade/.env.production @@ -1,6 +1,6 @@ # API Configuration NEXT_PUBLIC_API_URL=https://rwaapi.szaiai.com -NEXT_PUBLIC_MINING_API_URL=https://rwaapi.szaiai.com/api/v2/mining-admin +NEXT_PUBLIC_MINING_API_URL=https://rwaapi.szaiai.com/mining-admin # Application Info NEXT_PUBLIC_APP_NAME=RWADurian Mobile Upgrade diff --git a/frontend/mobile-upgrade/src/infrastructure/http/api-client.ts b/frontend/mobile-upgrade/src/infrastructure/http/api-client.ts index 132fac24..fb542302 100644 --- a/frontend/mobile-upgrade/src/infrastructure/http/api-client.ts +++ b/frontend/mobile-upgrade/src/infrastructure/http/api-client.ts @@ -61,10 +61,9 @@ const APP_CONFIGS: Record = { apiPrefix: '/api/v1/versions', }, // 股行 App - 连接新的 mining-admin-service 后端 - // 生产环境通过 Kong 路由: /api/v2/mining-admin -> mining-admin-service:3023/api/v2 mining: { - baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023/api/v2', - apiPrefix: '/versions', + baseURL: process.env.NEXT_PUBLIC_MINING_API_URL || 'http://localhost:3023', + apiPrefix: '/api/v2/versions', }, }