fix: update API base URL references to new domain for consistency across the application

This commit is contained in:
iHeyTang 2025-09-29 14:00:18 +08:00
parent f46942e269
commit 75372ffab5
5 changed files with 8 additions and 8 deletions

4
API.md
View File

@ -5,7 +5,7 @@ This document describes the REST API endpoints for the Mixvideo Workflow service
## Base URL ## Base URL
``` ```
https://mixvideo-workflow.bowong.cc/ https://api.bestaibest.ai/
``` ```
## Authentication ## Authentication
@ -953,4 +953,4 @@ API endpoints may be subject to rate limiting. Check response headers for rate l
- `user_request` - User requested refund - `user_request` - User requested refund
- `technical_issue` - Technical problem occurred - `technical_issue` - Technical problem occurred
- `duplicate` - Duplicate payment - `duplicate` - Duplicate payment
- `fraudulent` - Fraudulent transaction - `fraudulent` - Fraudulent transaction

View File

@ -40,7 +40,7 @@ const SuccessComponent: React.FC<SuccessComponentProps> = ({ task }) => {
webkit-playsinline="true" webkit-playsinline="true"
/> />
) : ( ) : (
<img className="result-image" src={`https://mixvideo-workflow.bowong.cc/cdn/${encodeURIComponent(task.outputUrl)}`} alt="Generated result" /> <img className="result-image" src={`https://api.bestaibest.ai/cdn/${encodeURIComponent(task.outputUrl)}`} alt="Generated result" />
) )
) : ( ) : (
<div className="result-placeholder"> <div className="result-placeholder">

View File

@ -42,6 +42,6 @@ export class H5Authorize extends Authorize {
if (hostname === 'localhost') { if (hostname === 'localhost') {
baseUrl = `${protocol}//${hostname}:${port}` 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}`
} }
} }

View File

@ -206,7 +206,7 @@ export interface TemplateSyncStatus {
* - Google OAuth认证 * - Google OAuth认证
* *
* @example * @example
* const sdk = new SdkServer('https://mixvideo-workflow.bowong.cc'); * const sdk = new SdkServer('https://api.bestaibest.ai');
* const templates = await sdk.getAllTemplates(); * const templates = await sdk.getAllTemplates();
*/ */
export class SdkServer { export class SdkServer {
@ -218,7 +218,7 @@ export class SdkServer {
* @param url API基础URLMixvideo Workflow的生产环境 * @param url API基础URLMixvideo Workflow的生产环境
* @param timeout 5 * @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.baseUrl = url.endsWith('/') ? url.slice(0, -1) : url;
this.timeout = timeout; this.timeout = timeout;
} }

View File

@ -52,7 +52,7 @@ export class AuthService {
if (hostname === 'localhost') { if (hostname === 'localhost') {
baseUrl = `${protocol}//${hostname}:${port}`; 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; window.location.href = redirectUrl;
} }