File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -642,9 +642,9 @@ function addCss(filepath, callback) {
642642 var apiDomain = 'https://open.ys7.com' ;
643643 /** jsDecoder 获取真实地址 -- 开始 */
644644 if ( playParams && playParams . hasOwnProperty ( 'decoderPath' ) ) {
645- if ( playParams . url . indexOf ( 'open.ezviz.com' ) !== - 1 ) { ///海外
645+ if ( playParams . url . split ( "," ) [ 0 ] . indexOf ( 'open.ezviz.com' ) !== - 1 ) { ///海外
646646 var host = "https://open.ys7.com" ;
647- var hostName = playParams . url . match ( / e z o p e n : \/ \/ ( \S * ) \. e z v i z \. c o m / ) [ 1 ] ;
647+ var hostName = playParams . url . split ( "," ) [ 0 ] . match ( / e z o p e n : \/ \/ ( \S * ) \. e z v i z \. c o m / ) [ 1 ] ;
648648 if ( playParams . env ) {
649649 var environmentParams = playParams . env ;
650650 domain = environmentParams . domain ;
@@ -1617,7 +1617,7 @@ function addCss(filepath, callback) {
16171617 this . opt . id = playParams . id ;
16181618 this . log ( "初始化解码器---开始" ) ;
16191619 var _this = this ;
1620- _this . opt . domain = playParams . url . match ( / e z o p e n : \/ \/ ( \S * ) \. ( y s 7 | e z v i z ) \. c o m / ) [ 1 ] ;
1620+ _this . opt . domain = playParams . url . split ( "," ) [ 0 ] . match ( / e z o p e n : \/ \/ ( \S * ) \. ( y s 7 | e z v i z ) \. c o m / ) [ 1 ] ;
16211621 if ( playParams . env ) {
16221622 var environmentParams = playParams . env ;
16231623 domain = environmentParams . domain ;
You can’t perform that action at this time.
0 commit comments