ucservice 1.2.4 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14239,13 +14239,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14239
14239
  return;
14240
14240
  }
14241
14241
 
14242
- let janusUrl = me._opts.conf.janusUrl; //没有证书,项目需要不使用wss
14243
- // checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
14244
-
14242
+ let janusUrl = me._opts.conf.janusUrl;
14243
+ checkIsHttps() && (janusUrl = janusUrl.replace('ws:', 'wss:'));
14245
14244
  me._opts.janus = new Janus({
14246
14245
  // server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
14247
14246
  //使用项目必须定义window.janusHttpsHost来适应https
14248
- server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
14247
+ // server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
14248
+ server: 'wss://112.124.244.179:9999/janus/',
14249
14249
  success: function () {
14250
14250
  console.log("Janus服务连接成功!");
14251
14251
 
@@ -16042,11 +16042,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
16042
16042
  if (_connecting) {
16043
16043
  return;
16044
16044
  } // Mangle the URL, changing the scheme from 'http' to 'ws'.
16045
- // var url = _cometd.getURL().replace(/^http/, 'ws');
16046
- //因证书问题,暂时将https和http都改成ws
16047
16045
 
16048
16046
 
16049
- var url = _cometd.getURL().replace(/^https/, 'ws').replace(/^http/, 'ws');
16047
+ var url = _cometd.getURL().replace(/^http/, 'ws');
16050
16048
 
16051
16049
  this._debug('Transport', this.getType(), 'connecting to URL', url);
16052
16050
 
Binary file