|
|
发表于 2026-1-25 16:50:03
|
显示全部楼层
|
<?php $id = $_GET['id']; $f = isset($_GET['f']) ? $_GET['f'] : 'hd'; // hd | sd | ld $u = 'https://www.pearvideo.com/web/v1/video_'.$id; $c = file_get_contents($u); preg_match('/'.$f.'Url="([^"]+)"/', $c, $m); $l = $m[1]; header('Access-Control-Allow-Origin: *'); header('Location: '.$l); |
|