|
@@ -415,9 +415,10 @@ const app = new Vue({
|
|
|
|
|
|
// 业务指令
|
|
// 业务指令
|
|
doConnectDirectives() {
|
|
doConnectDirectives() {
|
|
- let { internetHttps, localIp, cardToken } = this.userCardInfoData
|
|
|
|
|
|
+ let { internetHttps, internetHttp, localIp, cardToken } = this.userCardInfoData
|
|
const isWss = location.protocol === 'https:'
|
|
const isWss = location.protocol === 'https:'
|
|
- let cUrl = `${isWss ? 'wss' : 'ws'}://${internetHttps}/businessChannel?cardIp=${localIp}&token=${cardToken}&type=directives`
|
|
|
|
|
|
+ let cUrl = `${isWss ? 'wss' : 'ws'}://${isWss ? internetHttps : internetHttp}/businessChannel?cardIp=${localIp}&token=${cardToken}&type=directives`
|
|
|
|
+ console.log(cUrl)
|
|
this.doConnectDirectivesWs = new WebSocket(cUrl);
|
|
this.doConnectDirectivesWs = new WebSocket(cUrl);
|
|
this.doConnectDirectivesWs.binaryType = 'arraybuffer'
|
|
this.doConnectDirectivesWs.binaryType = 'arraybuffer'
|
|
clearInterval(doConnectDirectivesIntervalerPing)
|
|
clearInterval(doConnectDirectivesIntervalerPing)
|