From 331600dceb8661cb785bec488083f52f6d7279ef Mon Sep 17 00:00:00 2001 From: make Date: Fri, 5 Sep 2025 21:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=92=AD=E6=94=BE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=BA=BF=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/videoDadi/video/getVideoPlayUrl.html | 23 +++++++++++++------ code/public/public/video/common.js | 3 +-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html index 59ca058..7a8d10d 100644 --- a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html @@ -407,9 +407,21 @@ href='https://{$DomainModel->d_domain}{site:vpurl v_id="$arrVideo.v_id" v_py="$a var intJumpTimeTwoEnd = 1; var arrPlayUrl = {$arrVideo.v_play_url|json_encode|raw} ; var strPlayUrl = "" - - - + + function reorderObj(obj) { + if (!obj || typeof obj !== 'object') return obj; + let newObj = {}; + if (obj.hasOwnProperty('douban')) { + newObj['douban'] = obj['douban']; + } + for (let key in obj) { + if (key !== 'douban' && obj.hasOwnProperty(key)) { + newObj[key] = obj[key]; + } + } + return newObj; + } + arrPlayUrl = reorderObj(arrPlayUrl); {/block} @@ -421,9 +433,6 @@ href='https://{$DomainModel->d_domain}{site:vpurl v_id="$arrVideo.v_id" v_py="$a {block name="footer-js"} - - + {/block} \ No newline at end of file diff --git a/code/public/public/video/common.js b/code/public/public/video/common.js index 5aff1d2..7b2881f 100644 --- a/code/public/public/video/common.js +++ b/code/public/public/video/common.js @@ -636,9 +636,8 @@ document.addEventListener("DOMContentLoaded", function () { if (typeof strPlayType !== "undefined"){ if (strPlayType == 'default') { - console.log(arrPlayUrl) strPlayUrl = findFirstUrl(arrPlayUrl) - // checkLine(strPlayType); + checkLine('douban'); } else { var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1] strPlayUrl = ActivePlayUrl.url