{"code":400,"msg":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u5f85\u68c0\u6d4bURL","data":null}<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>WebScan 网页安全检测接口文档</title>
    <style>
        * {margin: 0; padding: 0; box-sizing: border-box;}
        body {max-width: 1200px; margin: 50px auto; padding: 0 20px; font-family: 微软雅黑, sans-serif;}
        .title {font-size: 28px; font-weight: bold; margin-bottom: 40px; color: #2c3e50;}
        .check-item {margin: 20px 0; padding: 15px; border: 1px solid #eee; border-radius: 8px;}
        .input-group {margin: 30px 0;}
        #url-input {width: 70%; height: 40px; padding: 0 10px; border: 1px solid #ddd; border-radius: 4px;}
        #check-btn {height: 40px; padding: 0 30px; background: #409eff; color: #fff; border: none; border-radius: 4px; cursor: pointer; margin-left: 10px;}
        #result-box {margin-top: 30px; padding: 20px; background: #f8f9fa; border-radius: 8px; min-height: 100px;}
    </style>
</head>
<body>
    <div class="title">WebScan 网页安全检测系统 - API 文档</div>
    <div class="check-item">支持的检测类型：停止访问、xss攻击拦截、非官方、长按复制到浏览器打开、未icp备案、无法确认该网页的安全性等</div>
    <div class="input-group">
        <input type="text" id="url-input" placeholder="请输入需要检测的目标网址">
        <button id="check-btn">立即检测</button>
    </div>
    <div id="result-box"></div>
    <script>
        document.getElementById('check-btn').addEventListener('click', async ()=>{
            const inputVal = document.getElementById('url-input').value;
            const resBox = document.getElementById('result-box');
            resBox.innerText = '检测中...';
            const formData = new FormData();
            formData.append('check_url', inputVal);
            const res = await fetch('/index.php', {method: 'POST', body: formData});
            const data = await res.json();
            resBox.innerText = JSON.stringify(data, null, 2);
        })
    </script>
</body>
</html>
