This commit is contained in:
make
2025-11-30 00:31:57 +08:00
parent 734527e8c7
commit 3cebb5b460
3 changed files with 17 additions and 85 deletions

View File

@@ -633,8 +633,13 @@ document.addEventListener("DOMContentLoaded", function () {
// 获取某个线路的第一个 url
function getFirstPlayUrl(playLine) {
return arrPlayUrl[playLine][0].url;
if (!arrPlayUrl || !arrPlayUrl[playLine] || !arrPlayUrl[playLine][0]) {
console.warn("播放线路不存在:", playLine, arrPlayUrl);
return null;
}
return arrPlayUrl[playLine][0].url || null;
}
})