<?php
$url = 'http://localhost/yangquan_wedding/api/api_router.php?path=video/play/opening_sample';
$response = file_get_contents($url);
echo "API响应:\n";
echo $response;
echo "\n\n";

// 检查文件是否存在
require_once 'config.php';
$stmt = $pdo->query("SELECT video_id, storage_path, file_name FROM video_assets WHERE is_active = 1");
echo "当前活跃视频:\n";
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    $fullPath = __DIR__ . '/' . $row['storage_path'] . $row['file_name'];
    $exists = file_exists($fullPath) ? '存在' : '不存在';
    echo "ID: {$row['video_id']} | 路径: {$row['storage_path']}{$row['file_name']} | 文件: $exists\n";
}
?>