| | |
| | | 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 |