修复视频播放问题

This commit is contained in:
zyx0814
2024-02-06 13:58:58 +08:00
Unverified
parent 5d3da83e43
commit c7d8646c5e
5 changed files with 28 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ if($_GET['operation']=='progress'){
//$rid = dzzdecode($_GET['path'],'',0);
if(strpos($rid, 'attach::') === 0){
$resourcesdata = C::t('attachment')->fetch(intval(str_replace('attach::', '', $path)));
$resourcesdata['iswebsitefile'] = 1;
}else{
$resourcesdata = C::t('pichome_resources')->fetch_data_by_rid($rid);
}
@@ -119,7 +119,12 @@ if($_GET['operation']=='progress'){
}
}else{
$src=IO::getFileuri($resourcesdata['path']);
if(!$resourcesdata['iswebsitefile'] && $resourcesdata['bz'] == 'dzz::'){
$src = getglobal('siteurl') . 'index.php?mod=io&op=getStream&path=' . dzzencode($rid.'_3', '', 14400, 0);
}else{
$src=IO::getFileuri($resourcesdata['path']);
}
}