if (process.env.NODE_ENV !== 'development') { //正式环境 const ROOTPATH = "https://yizhizan.edccc.cn/sqx_fast"; const ROOTPATH1 = "https://yizhizan.edccc.cn/sqx_fast"; const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服 const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/"; //聊天 const ROOTPATH4 = "https://yizhizan.edccc.cn"; module.exports = { APIHOST: ROOTPATH, APIHOST1: ROOTPATH1, WSHOST: ROOTPATH2, WSHOST1: ROOTPATH3, WSHOST4: ROOTPATH4 }; }else{ //测试环境 const ROOTPATH = "http://192.168.1.73:7155/sqx_fast"; const ROOTPATH1 = "http://192.168.1.73:7155/sqx_fast"; const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服 const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/"; //聊天 const ROOTPATH4 = "http://192.168.1.73:7155"; module.exports = { APIHOST: ROOTPATH, APIHOST1: ROOTPATH1, WSHOST: ROOTPATH2, WSHOST1: ROOTPATH3, WSHOST4: ROOTPATH4 }; }