Commit 662c0e5d authored by zhengke's avatar zhengke

修改

parent 52b64471
......@@ -49,13 +49,18 @@ module.exports = function (ctx) {
env: ctx.dev ? {
//API: 'http://192.168.1.36:8300/api'
API: 'https://localhost:5001/api',
//API: 'http://192.168.20.9:8085/api',
// API: 'https://localhost:5001/api',
// API: 'http://192.168.20.24:8300/api',
// API: 'http://testeduapi.oytour.com/api',
API: 'http://192.168.20.9:8085/api',
// API: 'http://192.168.20.17:8017/api',
// API: 'http://eduapi.oytour.com/api'
API_ZC:'http://192.168.20.9:8087/api'
API_ZC:'http://192.168.20.9:8087/api',
API_SK:'ws:192.168.20.214:'
} : {
API: 'http://eduapi.oytour.com/api',
API_ZC:'http://propertyedu.oytour.com/api'
API_ZC:'http://propertyedu.oytour.com/api',
API_SK:'ws://47.96.23.199:'
},
// transpile: false,
......
......@@ -8,7 +8,9 @@ var serverPort = '10086';
*/
function initWebSocket() {
//ws地址
var wsuri = "ws://47.96.23.199:" + serverPort;
//本地连214 线上连这个
// var wsuri = "ws://47.96.23.199:" + serverPort;
var wsuri = process.env.API_SK + serverPort;
websock = new WebSocket(wsuri);
websock.onmessage = function (e) {
websocketonmessage(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment