From 03043192ddf00f9a36b7454799a9152cd1b50a0b Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:13:45 +0800
Subject: [PATCH] 1

---
 src/config/index.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/config/index.js b/src/config/index.js
index 44ec738..4460509 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -42,33 +42,40 @@
 //const ENV_DEV = '9d9d8.com' // 填写前端域名网址
 
 // const ENV_DEV = '127.0.0.1' // dev
-// const ENV_DEV = '127.0.0.1:8086' // dev
-const ENV_DEV = 'api.mak-web3.com' // dev
+// const ENV_DEV = 'allapi.yanshiz.com' // dev
+const ENV_DEV = 'allapi.sceazy.com' // dev
 
 // const ENV_PRO = window.location.hostname // 接口域名跟随 H5
 // const ENV_PRO = "127.0.0.1"
-// const ENV_PRO = "127.0.0.1:8086"
-const ENV_PRO = "api.mak-web3.com"
+const ENV_PRO = "allapi.sceazy.com"
 // 避免打包出错务必把 app域名的注释要放在在本地ENV_PRO的下面
 // const ENV_PRO = 'foilwm.com' //  app域名
+
+const ENV_WS = 'wss://usws.yanshiz.com/websocket-server'
 
 let base_url = ''
 let ws_url = ''
 let host_url = ''
 if (import.meta.env.MODE === 'development') {
+	// 开发环境使用相对路径,通过 Vite 代理转发,解决跨域问题
 	host_url = 'http://' + ENV_DEV
-	base_url = 'http://' + ENV_DEV
-	ws_url = 'wss://' + ENV_DEV + '/api/websocket'
+	// base_url = '' // 使用空字符串,配合 API_PREFIX='/api' 形成 /api/xxx 路径,走 Vite 代理
+	base_url = 'http://' + ENV_DEV // 使用空字符串,配合 API_PREFIX='/api' 形成 /api/xxx 路径,走 Vite 代理
+	ws_url = 'ws://' + ENV_DEV + '/api/websocket'
+	// ws_url =  ENV_WS
 } else {
 	host_url = 'https://' + ENV_PRO
 	base_url = 'https://' + ENV_PRO
 	ws_url = `wss://${ENV_PRO}/api/websocket`
+	// ws_url =  ENV_WS 
 }
 export const BASE_URL = base_url
 export const WS_URL = ws_url
 export const IMG_PATH = host_url
 export const HOST_URL = host_url
 
+export const customerServiceUrl = 'http://wa.me/15133833979' // 客服url
+
 export default {
 	sliderOptions: {
 		dotSize: 14,

--
Gitblit v1.9.3