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} />