update pay ui

This commit is contained in:
2025-12-13 17:24:23 +08:00
parent dc03fad2a5
commit 0060911e41
2 changed files with 44 additions and 16 deletions

View File

@@ -1,16 +1,18 @@
import { getApiBase } from '../../utils/apiConfig';
/**
* Bytedesk客服配置文件
* 通过代理访问 Bytedesk 服务器(解决 HTTPS 混合内容问题)
- iframe 使用完整域名https://valuefrontier.cn/bytedesk/chat/
- iframe 使用完整域名https://api.valuefrontier.cn/chat/
- 使用 HTTPS 协议,解决生产环境 Mixed Content 错误
- 生产:前端 Nginx 代理 /bytedesk → 43.143.189.195
- 生产:API 服务器 Nginx 代理 /bytedesk → 43.143.189.195
- baseUrl 保持官方 CDN用于加载 SDK 外部模块)
*/
export const bytedeskConfig = {
// API服务地址如果 SDK 需要调用 API
apiUrl: '/bytedesk',
// 聊天页面地址(使用完整 HTTPS 域名,通过 /bytedesk/ 代理避免 React Router 冲突
htmlUrl: 'https://valuefrontier.cn/chat/',
// API服务地址通过 API 服务器代理
apiUrl: `${getApiBase()}/bytedesk`,
// 聊天页面地址(通过 API 服务器代理
htmlUrl: `${getApiBase()}/chat/`,
// SDK 资源基础路径(保持 Bytedesk 官方 CDN用于加载外部模块
baseUrl: 'https://www.weiyuai.cn',