反代 OneDrive :OneIndex 实现高速下载在线观看视频
  • 打开安装好的 oneindex目录/lib/onedrive.php
foreach((array)$data['value'] as $item){
                //var_dump($item);
                $items[$item['name']] = array(
                    'name'=>$item['name'],
                    'size'=>$item['size'],
                    'lastModifiedDateTime'=>strtotime($item['lastModifiedDateTime']),
                    'downloadUrl'=>$item['@microsoft.graph.downloadUrl'],
                    'folder'=>empty($item['folder'])?false:true
                );
            }

替换为

foreach((array)$data['value'] as $item){
                //var_dump($item);
                $items[$item['name']] = array(
                    'name'=>$item['name'],
                    'size'=>$item['size'],
                    'lastModifiedDateTime'=>strtotime($item['lastModifiedDateTime']),
                    'downloadUrl'=>str_ireplace("Sharepoint链接","反代的链接",$item['@microsoft.graph.downloadUrl']),
                    'folder'=>empty($item['folder'])?false:true
                );
            }
© 版权声明
THE END
点赞0