From 5404c617588e55aa3de6915d4b0dc86ac4d63ad2 Mon Sep 17 00:00:00 2001 From: make Date: Sun, 30 Nov 2025 01:03:22 +0800 Subject: [PATCH] debug --- code/public/public/video/common.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }