交易所前端蓝色ui, 4.5 jiem
lxf
2025-04-18 66a33e936d39ec4db7fdffed5d646e044ccc43e9
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