1
李凌
2026-01-06 d038edd2e7be2ab280e984847f612fa69fd6fc39
src/config/index.js
@@ -35,12 +35,12 @@
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
// const ENV_DEV = 'openapi.yanshiz.com' // dev
const ENV_DEV = 'ddapi.fractionx-ex.com' // dev
const ENV_DEV = 'jysapi.wecnsy.com' // dev
// const ENV_DEV = '192.168.10.6:8086' // dev
// const ENV_PRO = 'qheufhj.site' //  app域名
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = 'ddapi.fractionx-ex.com' // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = 'jysapi.wecnsy.com' // 接口域名跟随 H5zhapi.coinbtcs.com
// const ENV_PRO = '192.168.10.6:8086' // 接口域名跟随 H5zhapi.coinbtcs.com
let base_url = ''
@@ -56,7 +56,7 @@
    ws_url = 'wss://' + ENV_PRO + '/api/websocket'
}
let imgUrl = 'https://ddimg.fractionx-ex.com' // 暂时的 单独的图片地址
let imgUrl = 'https://jysimg.wecnsy.com' // 暂时的 单独的图片地址
export const BASE_URL = base_url
export const WS_URL = ws_url
@@ -70,16 +70,18 @@
export const customerServiceUrl = ()=>{
    let str = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69'
    let user = JSON.parse(localStorage.getItem('user'))
    console.log(user);
    let userName = '',pid = '';
    if(user && user.userInfo){
        userName = user.userInfo.username
        pid = user.userInfo.usercode
    }
    str += `&userName=${userName}&pid=${pid}`
    return str
    // let str = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69'
    // let user = JSON.parse(localStorage.getItem('user'))
    // console.log(user);
    // let userName = '',pid = '';
    // if(user && user.userInfo){
    //     userName = user.userInfo.username
    //     pid = user.userInfo.usercode
    // }
    // str += `&userName=${userName}&pid=${pid}`
    // return str
    return null
} // 客服外链链接
export default {