Selaa lähdekoodia

提交配置文件~

release/210823_需求对对碰
王饶冀 3 vuotta sitten
vanhempi
commit
dbb849e4b1
3 muutettua tiedostoa jossa 4 lisäystä ja 5 poistoa
  1. 3
    2
      app.js
  2. 0
    2
      components/tabbar/tabbar.js
  3. 1
    1
      pages/msgModule/wechat2/wechat2.js

+ 3
- 2
app.js Näytä tiedosto

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",
webSocketUrl:"ws://192.168.18.138",
// webSocketUrl:"ws://test2.hhrchina.com",
// webSocketUrl:"wss://www.hhrchina.com",
}) })

+ 0
- 2
components/tabbar/tabbar.js Näytä tiedosto

let _this = this; let _this = this;
let customerId = this.data.customerId; let customerId = this.data.customerId;
let url = encodeURI(`ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`); let url = encodeURI(`ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`);
console.log(url);
// let url = `ws://` + app.webSocketUrl + `/webSocket/{"userno":${customerId},"messageModule":"010"}`;
//建立连接 //建立连接
wx.connectSocket({ wx.connectSocket({
url,//本地 url,//本地

+ 1
- 1
pages/msgModule/wechat2/wechat2.js Näytä tiedosto

initWebSocket: function () { initWebSocket: function () {
var _this = this; var _this = this;
let { receiveMemberId, sendMemberId } = _this.data; let { receiveMemberId, sendMemberId } = _this.data;
let url = encodeURI(`ws://` + app.webSocketUrl + `/webSocket/{"userno":${receiveMemberId},"messageModule":"010"}`);
let url = encodeURI(app.webSocketUrl + `/webSocket/{"userno":${receiveMemberId},"messageModule":"010"}`);
//建立连接 //建立连接
wx.connectSocket({ wx.connectSocket({
url,//本地 url,//本地

Loading…
Peruuta
Tallenna