|
|
@ -9,7 +9,7 @@ header('Access-Control-Allow-Origin:*'); |
|
|
|
//header('content-type: video/mp4'); |
|
|
|
//header('content-type: video/mp4'); |
|
|
|
|
|
|
|
|
|
|
|
$path = $_REQUEST['path']; |
|
|
|
$path = $_REQUEST['path']; |
|
|
|
|
|
|
|
$isProxy = $_REQUEST['isProxy']; |
|
|
|
|
|
|
|
|
|
|
|
if($path){ |
|
|
|
if($path){ |
|
|
|
|
|
|
|
|
|
|
@ -23,9 +23,8 @@ yimian__log("log_api", array("api" => "video", "timestamp" => date('Y-m-d H:i:s' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function returnVideo($path){ |
|
|
|
function returnVideo($path){ |
|
|
|
if($path == '404.pm4'){ |
|
|
|
if($isProxy == "true"){ |
|
|
|
header("Location: https://cdn.yimian.xyz/video/404.mp4"); |
|
|
|
header("Location: https://proxy.yimian.xyz/get/?url=".base64_encode($url).""); |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$url = getVideo($path); |
|
|
|
$url = getVideo($path); |
|
|
|
header("Location: $url"); |
|
|
|
header("Location: $url"); |
|
|
|