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