debug
This commit is contained in:
@@ -408,20 +408,7 @@ href='https://{$DomainModel->d_domain}{site:vpurl v_id="$arrVideo.v_id" v_py="$a
|
||||
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);
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user