| @@ -105,4 +105,6 @@ App({ | |||
| mangerUrl: "http://192.168.18.138", | |||
| // mangerUrl: "https://www.hhrchina.com", | |||
| // mangerUrlPath: "https://www.hhrchina.com", | |||
| webSocketUrl:"192.168.18.138", | |||
| // webSocketUrl:"test2.hhrchina.com", | |||
| }) | |||
| @@ -100,7 +100,7 @@ Component({ | |||
| let customerId = this.data.customerId; | |||
| //建立连接 | |||
| wx.connectSocket({ | |||
| url: `ws://192.168.18.138/webSocket/{"userno":${customerId},"messageModule":"010"}`,//本地 | |||
| url: `ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`,//本地 | |||
| success: function () { | |||
| console.log('消息页-websocket连接成功~') | |||
| }, | |||
| @@ -48,7 +48,7 @@ Page({ | |||
| // console.log() | |||
| //建立连接 | |||
| wx.connectSocket({ | |||
| url: `ws://192.168.18.138/webSocket/{"userno":${customerId},"messageModule":"010"}`,//本地 | |||
| url: `ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`,//本地 | |||
| success: function () { | |||
| console.log('消息页-websocket连接成功~') | |||
| }, | |||
| @@ -119,7 +119,7 @@ Page({ | |||
| // console.log() | |||
| //建立连接 | |||
| wx.connectSocket({ | |||
| url: `ws://192.168.18.138/webSocket/{"userno":${receiveMemberId},"messageModule":"010"}`,//本地 | |||
| url: `ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`,//本地 | |||
| success: function () { | |||
| console.log('websocket连接成功~') | |||
| }, | |||