<?php
// 测试自动化API
$url = 'http://localhost/yangquan_wedding-3/api/api_router.php/digital-human/manager/auto-stats';
$response = file_get_contents($url);
echo "自动统计API响应:\n";
echo $response . "\n\n";

// 测试智能分配API
$url2 = 'http://localhost/yangquan_wedding-3/api/api_router.php/digital-human/manager/auto-assign';
$postData = http_build_query([
    'description' => '检查音响设备',
    'deadline' => '12:00',
    'priority' => 'high'
]);
$context = stream_context_create([
    'http' => [
        'method' => 'POST',
        'header' => 'Content-Type: application/x-www-form-urlencoded',
        'content' => $postData
    ]
]);
$response2 = file_get_contents($url2, false, $context);
echo "智能分配API响应:\n";
echo $response2 . "\n";
?>