debug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user