const h5Url='https://h5.bosszan.com' const ossUrl='https://yi-zhipin.oss-cn-hangzhou.aliyuncs.com/emoji/' const productionApiUrl = 'https://www.bosszan.com/sqx_fast' const productionWssUrl = 'wss://www.bosszan.com/wss/websocket/' const productionChatUrl = 'wss://www.bosszan.com/wss/chatSocket/' const testApiUrl = 'https://yizhizan.edccc.cn/sqx_fast' const testWssUrl = 'wss://yizhizan.edccc.cn/wss/websocket/' const testChatUrl = 'wss://yizhizan.edccc.cn/wss/chatSocket/' let isProduction = true // 判断是否是生产环境 if (isProduction) { //正式环境 const ROOTPATH = productionApiUrl; const ROOTPATH1 = productionApiUrl; const ROOTPATH2 = productionWssUrl; //联系客服 const ROOTPATH3 = productionChatUrl; //聊天 const ROOTPATH4 = "https://www.bosszan.com"; module.exports = { APIHOST: ROOTPATH, APIHOST1: ROOTPATH1, WSHOST: ROOTPATH2, WSHOST1: ROOTPATH3, WSHOST4: ROOTPATH4, h5Url, ossUrl, isProduction, test: { APIHOST: testApiUrl, APIHOST1: testApiUrl, WSHOST: testWssUrl, WSHOST1: testChatUrl }, production: { APIHOST: productionApiUrl, APIHOST1: productionApiUrl, WSHOST: productionWssUrl, WSHOST1: productionChatUrl } }; }else{ //测试环境 const ROOTPATH = testApiUrl; const ROOTPATH1 = testApiUrl; const ROOTPATH2 = testWssUrl; //联系客服 const ROOTPATH3 = testChatUrl; //聊天 const ROOTPATH4 = ""; module.exports = { APIHOST: ROOTPATH, APIHOST1: ROOTPATH1, WSHOST: ROOTPATH2, WSHOST1: ROOTPATH3, WSHOST4: ROOTPATH4, h5Url, ossUrl, isProduction, test: { APIHOST: testApiUrl, APIHOST1: testApiUrl, WSHOST: testWssUrl, WSHOST1: testChatUrl }, production: { APIHOST: productionApiUrl, APIHOST1: productionApiUrl, WSHOST: productionWssUrl, WSHOST1: productionChatUrl } }; }