1
jhzh
2025-08-05 e7657b7014971de552045a192c0e6643b8f8be47
src/config/index.js
@@ -34,19 +34,19 @@
export const defaultSeconds = 1 * 24 * 60 * 60 * 1000
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
const ENV_DEV = 'openapi.yanshiz.com' // dev
// const ENV_DEV = '192.168.10.13:8086' // dev
const ENV_DEV = 'bingxapi.graborder.org' // dev
// const ENV_DEV = '192.168.10.8:8086' // dev
// const ENV_PRO = 'qheufhj.site' //  app域名
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = 'openapi.yanshiz.com' // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = 'bingxapi.graborder.org' // 接口域名跟随 H5zhapi.coinbtcs.com
let base_url = ''
let ws_url = ''
let host_url = ''
if (import.meta.env.MODE === 'development') {
    host_url = 'http://' + ENV_DEV
    base_url = 'http://' + ENV_DEV
    host_url = 'https://' + ENV_DEV
    base_url = 'https://' + ENV_DEV
    ws_url = 'ws://' + ENV_DEV + '/api/websocket'
} else {
    host_url = 'https://' + ENV_PRO
@@ -54,7 +54,7 @@
    ws_url = 'wss://' + ENV_PRO + '/api/websocket'
}
let imgUrl = 'https://okxh5.yanshiz.com' // 暂时的 单独的图片地址
let imgUrl = 'https://bingx.graborder.org' // 暂时的 单独的图片地址
export const BASE_URL = base_url
export const WS_URL = ws_url