From 75372ffab551e4d51d0708bfe4385a9da1de3196 Mon Sep 17 00:00:00 2001 From: iHeyTang Date: Mon, 29 Sep 2025 14:00:18 +0800 Subject: [PATCH] fix: update API base URL references to new domain for consistency across the application --- API.md | 4 ++-- src/pages/result/components/SuccessComponent.tsx | 2 +- src/platforms/h5/authorize.ts | 4 ++-- src/sdk/sdk-server.ts | 4 ++-- src/services/auth.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/API.md b/API.md index dd4c0fd..1870fe5 100644 --- a/API.md +++ b/API.md @@ -5,7 +5,7 @@ This document describes the REST API endpoints for the Mixvideo Workflow service ## Base URL ``` -https://mixvideo-workflow.bowong.cc/ +https://api.bestaibest.ai/ ``` ## Authentication @@ -953,4 +953,4 @@ API endpoints may be subject to rate limiting. Check response headers for rate l - `user_request` - User requested refund - `technical_issue` - Technical problem occurred - `duplicate` - Duplicate payment -- `fraudulent` - Fraudulent transaction \ No newline at end of file +- `fraudulent` - Fraudulent transaction diff --git a/src/pages/result/components/SuccessComponent.tsx b/src/pages/result/components/SuccessComponent.tsx index 8cc1acc..6dcb6ba 100644 --- a/src/pages/result/components/SuccessComponent.tsx +++ b/src/pages/result/components/SuccessComponent.tsx @@ -40,7 +40,7 @@ const SuccessComponent: React.FC = ({ task }) => { webkit-playsinline="true" /> ) : ( - Generated result + Generated result ) ) : (
diff --git a/src/platforms/h5/authorize.ts b/src/platforms/h5/authorize.ts index d852877..462c142 100644 --- a/src/platforms/h5/authorize.ts +++ b/src/platforms/h5/authorize.ts @@ -42,6 +42,6 @@ export class H5Authorize extends Authorize { if (hostname === 'localhost') { baseUrl = `${protocol}//${hostname}:${port}` } - window.location.href = `https://mixvideo-workflow.bowong.cc/auth/google/authorize?redirect_url=${baseUrl}` + window.location.href = `https://api.bestaibest.ai/auth/google/authorize?redirect_url=${baseUrl}` } -} \ No newline at end of file +} diff --git a/src/sdk/sdk-server.ts b/src/sdk/sdk-server.ts index 7929a42..a47b3c0 100644 --- a/src/sdk/sdk-server.ts +++ b/src/sdk/sdk-server.ts @@ -206,7 +206,7 @@ export interface TemplateSyncStatus { * - Google OAuth认证(登录、令牌刷新、撤销) * * @example - * const sdk = new SdkServer('https://mixvideo-workflow.bowong.cc'); + * const sdk = new SdkServer('https://api.bestaibest.ai'); * const templates = await sdk.getAllTemplates(); */ export class SdkServer { @@ -218,7 +218,7 @@ export class SdkServer { * @param url API基础URL,默认为Mixvideo Workflow的生产环境 * @param timeout 请求超时时间(毫秒),默认5分钟 */ - constructor(url: string = `https://mixvideo-workflow.bowong.cc`, timeout: number = 5 * 60 * 1000) { + constructor(url: string = `https://api.bestaibest.ai`, timeout: number = 5 * 60 * 1000) { this.baseUrl = url.endsWith('/') ? url.slice(0, -1) : url; this.timeout = timeout; } diff --git a/src/services/auth.ts b/src/services/auth.ts index 4d5eff0..296471c 100644 --- a/src/services/auth.ts +++ b/src/services/auth.ts @@ -52,7 +52,7 @@ export class AuthService { if (hostname === 'localhost') { baseUrl = `${protocol}//${hostname}:${port}`; } - const redirectUrl = `https://mixvideo-workflow.bowong.cc/auth/google/authorize?redirect_url=${baseUrl}${redirectPath || ''}`; + const redirectUrl = `https://api.bestaibest.ai/auth/google/authorize?redirect_url=${baseUrl}${redirectPath || ''}`; window.location.href = redirectUrl; }