diff --git a/code/public/public/video/common.js b/code/public/public/video/common.js index 7eb0333..1e0ed00 100644 --- a/code/public/public/video/common.js +++ b/code/public/public/video/common.js @@ -570,7 +570,7 @@ function reorderObj(obj) { } document.addEventListener("DOMContentLoaded", function () { - + if (typeof strVideoId !== "undefined") { @@ -626,10 +626,11 @@ document.addEventListener("DOMContentLoaded", function () { } + // 获取第一个线路 key(带容错) function getDefaultLine() { - if (!arrPlayUrl || typeof arrPlayUrl !== "object") { - console.warn("arrPlayUrl 无效:", arrPlayUrl); + if (typeof arrPlayUrl === "undefined" || !arrPlayUrl || typeof arrPlayUrl !== "object" ) { + console.warn("arrPlayUrl 无效:"); return null; }