优化websockt连接地址
This commit is contained in:
parent
0f201d3269
commit
60da2c5088
@ -8,6 +8,7 @@ let httpApiTwo
|
|||||||
let httpApiThree
|
let httpApiThree
|
||||||
let httpApiFour
|
let httpApiFour
|
||||||
let httpApiFive
|
let httpApiFive
|
||||||
|
let wsApi
|
||||||
|
|
||||||
// 在打包之前请检查当前环境是否正确
|
// 在打包之前请检查当前环境是否正确
|
||||||
const env = 'dev'; // 开发
|
const env = 'dev'; // 开发
|
||||||
@ -20,12 +21,14 @@ switch (env) {
|
|||||||
httpApiTwo = 'https://nk.lihaink.cn'
|
httpApiTwo = 'https://nk.lihaink.cn'
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
httpApiFour = 'https://worker-task.lihaink.cn'
|
httpApiFour = 'https://worker-task.lihaink.cn'
|
||||||
|
wsApi = 'wss://shop.lihaink.cn'
|
||||||
break;
|
break;
|
||||||
case 'prew':
|
case 'prew':
|
||||||
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
||||||
httpApiTwo = "https://nk.lihaink.cn"
|
httpApiTwo = "https://nk.lihaink.cn"
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
httpApiFour = 'https://preview-worker-task.lihaink.cn'
|
httpApiFour = 'https://preview-worker-task.lihaink.cn'
|
||||||
|
wsApi = 'wss://test.shop.lihaink.cn'
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
|
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
|
||||||
@ -33,15 +36,13 @@ switch (env) {
|
|||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
httpApiFour = 'https://ceshi-worker-task.lihaink.cn'
|
httpApiFour = 'https://ceshi-worker-task.lihaink.cn'
|
||||||
httpApiFive = 'https://ceshi-zhibo.lihaink.cn'
|
httpApiFive = 'https://ceshi-zhibo.lihaink.cn'
|
||||||
|
wsApi = 'wss://crmeb-test.shop.lihaink.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
|
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
|
||||||
// let wsApi = 'ws://192.168.3.20:8324'
|
// wsApi = 'ws://192.168.1.17:8324'
|
||||||
let wsApi = 'wss://shop.lihaink.cn'
|
|
||||||
let wsApi_one = 'wss://ceshi-zhibo.lihaink.cn/chat_room'
|
let wsApi_one = 'wss://ceshi-zhibo.lihaink.cn/chat_room'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// 请求域名 格式: https://您的域名
|
// 请求域名 格式: https://您的域名
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user