From 19e366e0d93f890d4446b15810eaa7de9d1dfa04 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 29 Dec 2025 02:45:23 -0800 Subject: [PATCH] =?UTF-8?q?fix(service-party-app):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?Account=20=E6=9C=8D=E5=8A=A1=20URL=20=E4=B8=BA=20rwaapi.szaiai.?= =?UTF-8?q?com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit api.szaiai.com 被 OSS/CDN 拦截,改用 rwaapi.szaiai.com 直接访问 Kong 网关 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../services/service-party-app/electron/main.ts | 4 ++-- .../service-party-app/electron/modules/account-client.ts | 2 +- .../services/service-party-app/src/pages/Settings.tsx | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/mpc-system/services/service-party-app/electron/main.ts b/backend/mpc-system/services/service-party-app/electron/main.ts index fca5f3f4..a7001ee2 100644 --- a/backend/mpc-system/services/service-party-app/electron/main.ts +++ b/backend/mpc-system/services/service-party-app/electron/main.ts @@ -111,7 +111,7 @@ async function initServices() { // 初始化 Account 服务 HTTP 客户端 // 从数据库读取 Account 服务 URL,默认使用生产环境地址 const settings = database.getAllSettings(); - const accountServiceUrl = settings['account_service_url'] || 'https://api.szaiai.com'; + const accountServiceUrl = settings['account_service_url'] || 'https://rwaapi.szaiai.com'; accountClient = new AccountClient(accountServiceUrl); // 设置 IPC 处理器 @@ -441,7 +441,7 @@ function setupIpcHandlers() { // 获取 Account 服务 URL ipcMain.handle('account:getUrl', async () => { - return accountClient?.getBaseUrl() || 'https://api.szaiai.com'; + return accountClient?.getBaseUrl() || 'https://rwaapi.szaiai.com'; }); // =========================================================================== diff --git a/backend/mpc-system/services/service-party-app/electron/modules/account-client.ts b/backend/mpc-system/services/service-party-app/electron/modules/account-client.ts index b8f1be8f..e0f61a48 100644 --- a/backend/mpc-system/services/service-party-app/electron/modules/account-client.ts +++ b/backend/mpc-system/services/service-party-app/electron/modules/account-client.ts @@ -327,7 +327,7 @@ export class AccountClient { // ============================================================================= // 默认使用生产环境地址 -const DEFAULT_ACCOUNT_SERVICE_URL = 'https://api.szaiai.com'; +const DEFAULT_ACCOUNT_SERVICE_URL = 'https://rwaapi.szaiai.com'; // 创建默认客户端实例 export const accountClient = new AccountClient(DEFAULT_ACCOUNT_SERVICE_URL); diff --git a/backend/mpc-system/services/service-party-app/src/pages/Settings.tsx b/backend/mpc-system/services/service-party-app/src/pages/Settings.tsx index a9fa5e56..ac761696 100644 --- a/backend/mpc-system/services/service-party-app/src/pages/Settings.tsx +++ b/backend/mpc-system/services/service-party-app/src/pages/Settings.tsx @@ -14,7 +14,7 @@ export default function Settings() { const [settings, setSettings] = useState({ messageRouterUrl: 'mpc-grpc.szaiai.com:443', // 生产环境默认地址 - accountServiceUrl: 'https://api.szaiai.com', // Account 服务默认地址 + accountServiceUrl: 'https://rwaapi.szaiai.com', // Account 服务默认地址 autoBackup: false, backupPath: '', }); @@ -33,7 +33,7 @@ export default function Settings() { if (result) { setSettings({ ...result, - accountServiceUrl: accountUrl || 'https://api.szaiai.com', + accountServiceUrl: accountUrl || 'https://rwaapi.szaiai.com', }); } } catch (err) { @@ -152,7 +152,7 @@ export default function Settings() { type="text" value={settings.accountServiceUrl} onChange={(e) => setSettings(prev => ({ ...prev, accountServiceUrl: e.target.value }))} - placeholder="https://api.szaiai.com" + placeholder="https://rwaapi.szaiai.com" className={styles.input} />