Pārlūkot izejas kodu

修改app.webSocketUrl。新加一个测试连接!

release/210823_需求对对碰
王饶冀 pirms 3 gadiem
vecāks
revīzija
eda470042a

+ 2
- 0
app.js Parādīt failu

@@ -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",
})

+ 1
- 1
components/tabbar/tabbar.js Parādīt failu

@@ -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连接成功~')
},

+ 1
- 1
pages/msgModule/index.js Parādīt failu

@@ -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连接成功~')
},

+ 1
- 1
pages/msgModule/wechat2/wechat2.js Parādīt failu

@@ -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连接成功~')
},

Notiek ielāde…
Atcelt
Saglabāt