From 66a33e936d39ec4db7fdffed5d646e044ccc43e9 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Fri, 18 Apr 2025 10:44:39 +0800
Subject: [PATCH] feat
---
src/config/index.js | 34 +++++++++++++++++++---------------
1 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/src/config/index.js b/src/config/index.js
index c4e7fa2..9f79e4f 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -1,27 +1,31 @@
export const TIME_OUT = 2000 // 请求频率
-const ENV_DEV = 'xinbi.jumpexs.com' // dev
+// const ENV_DEV = 'dapp.trullcpro.top' // dev123123csjys.gayssad.comwww.trullcpro.top
+// const ENV_DEV = 'www.trullcpro.top' // dev123123csjys.gayssad.com
+const ENV_DEV = 'btc.btcwapo.com' // dev123123
+// const ENV_DEV = 'www.blackstone.top' // yunge
+
//const ENV_PRO = 'worldcoinpro.com' // 官网环境
// const ENV_PRO = 'thjddu.com' // app域名
const ENV_PRO = window.location.hostname // 接口域名跟随
-let base_url =''
-let base_url2 =''
+let base_url = ''
+let base_url2 = ''
let ws_url = ''
-let host_url =''
-if (process.env.NODE_ENV === 'development'){
- host_url = 'https://'+ENV_DEV
- base_url = 'https://'+ENV_DEV +'/wap/'
- base_url2 = 'https://'+ENV_DEV +'/'
- ws_url = 'wss://' + ENV_DEV +'/data/websocket'
-}else{
- host_url = 'https://'+ENV_PRO
- base_url = 'https://' + ENV_PRO +'/wap/'
- base_url2 = 'https://' + ENV_PRO +'/'
- //ws_url = `wss://${ENV_PRO}/data/websocket`
- ws_url = `wss://xinbi.jumpexs.com/data/websocket`
+let host_url = ''
+if (process.env.NODE_ENV === 'development') {
+ host_url = 'https://' + ENV_DEV
+ base_url = 'https://' + ENV_DEV + '/wap/'
+ base_url2 = 'https://' + ENV_DEV + '/'
+ ws_url = 'wss://' + ENV_DEV + '/data/websocket'
+} else {
+ host_url = 'https://' + ENV_PRO
+ base_url = 'https://' + ENV_PRO + '/wap/'
+ base_url2 = 'https://' + ENV_PRO + '/'
+ ws_url = `wss://${ENV_PRO}/data/websocket`
+ // ws_url = `wss://dapp.trullcpro.top/data/websocket`
}
export const BASE_URL = base_url
export const BASE_URL2 = base_url2
--
Gitblit v1.9.3