|
@@ -29,7 +29,7 @@ App({
|
|
|
initSocket() {
|
|
|
let that = this;
|
|
|
this.globalData.SocketTask = wx.connectSocket({
|
|
|
- url: 'wss://oms.idcgroup.com.cn:8079/yos/webSocket/' + wx.getStorageSync('userMsg').token,
|
|
|
+ url: (this.globalData.http.baseUrl + '/yos/webSocket/').replace("https", "wss").replace("http", "ws") + wx.getStorageSync('userMsg').token,
|
|
|
complete: (res) => {
|
|
|
console.log(res)
|
|
|
}
|
|
@@ -48,7 +48,7 @@ App({
|
|
|
})
|
|
|
},
|
|
|
globalData: {
|
|
|
- http: new ApiModel(), //接口文件
|
|
|
+ http: new ApiModel, //挂载接口文件
|
|
|
queryPer: require("./utils/queryPermissions"), //权限查询
|
|
|
handleSelect: null, //处理选择结果 函数
|
|
|
socketEstablish: false, //是否已经建立socket
|
|
@@ -57,6 +57,5 @@ App({
|
|
|
that: null, //保存this
|
|
|
callback: function () {}
|
|
|
},
|
|
|
- host:"http://61.164.207.46:8000"
|
|
|
}
|
|
|
})
|