<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>接口自检结果</title>
<style>
  :root { color-scheme: light; }
  * { box-sizing: border-box; }
  body {
    margin: 0; padding: 24px; background: #f4f5f7;
    font: 15px/1.65 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #1b1f24;
  }
  .wrap { max-width: 680px; margin: 0 auto; }
  .card {
    background: #fff; border-radius: 16px; padding: 26px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.07);
  }
  h1 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
  .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
  .ok .dot { background: #17a34a; }
  .bad .dot { background: #dc2626; }
  .ok h1 { color: #14804a; }
  .bad h1 { color: #c02626; }
  .lead { margin: 0 0 20px; color: #5b6570; font-size: 14px; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th, td { text-align: left; padding: 9px 0; border-bottom: 1px solid #eef0f3; vertical-align: top; }
  th { width: 42%; font-weight: 500; color: #5b6570; }
  td { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
  tr:last-child th, tr:last-child td { border-bottom: 0; }
  .warns {
    margin: 20px 0 0; padding: 14px 16px; border-radius: 12px;
    background: #fef3f2; border: 1px solid #fbd5d2;
  }
  .warns b { color: #b42318; font-size: 14px; }
  .warns ul { margin: 8px 0 0; padding-left: 20px; }
  .warns li { color: #7a271a; font-size: 13.5px; margin-bottom: 5px; }
  details { margin-top: 20px; }
  summary { cursor: pointer; font-size: 13.5px; color: #5b6570; }
  pre {
    margin: 12px 0 0; padding: 14px; border-radius: 10px; background: #f7f8fa;
    font-size: 12.5px; overflow: auto; max-height: 340px; color: #24292f;
  }
  .back { display: inline-block; margin-top: 18px; font-size: 13.5px; color: #5b6570; }
  code { background: #f0f2f5; padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
</style>
</head>
<body>
<div class="wrap">
  <div class="card ok">
    <h1><span class="dot"></span>配置正常，后端已通</h1>
    <p class="lead">下面每一行都是一项检查结果，对照着看就行。</p>
    <table><tr><th>PHP 版本</th><td>7.4.33</td></tr><tr><th>curl 扩展</th><td>已安装</td></tr><tr><th>mbstring 扩展</th><td>已安装</td></tr><tr><th>模型提供方</th><td>deepseek</td></tr><tr><th>模型</th><td>deepseek-flash</td></tr><tr><th>Key 末尾 4 位</th><td>...5848</td></tr><tr><th>私有配置生效</th><td>是（2026-09-25 17:29:42）</td></tr><tr><th>config.php 时间</th><td>2026-09-25 17:20:14</td></tr><tr><th>index.php 时间</th><td>2026-09-25 18:15:18</td></tr><tr><th>真实调用模型</th><td>成功（HTTP 200）</td></tr></table>
    
    <details>
      <summary>展开原始 JSON（脚本调用时返回的就是这个）</summary>
      <pre>{
    &quot;ok&quot;: true,
    &quot;php&quot;: &quot;7.4.33&quot;,
    &quot;curl&quot;: true,
    &quot;mbstring&quot;: true,
    &quot;provider&quot;: &quot;deepseek&quot;,
    &quot;endpoint&quot;: &quot;https://api.deepseek.com/chat/completions&quot;,
    &quot;model&quot;: &quot;deepseek-flash&quot;,
    &quot;key_tail&quot;: &quot;...5848&quot;,
    &quot;index_php_at&quot;: &quot;2026-09-25 18:15:18&quot;,
    &quot;config_php_at&quot;: &quot;2026-09-25 17:20:14&quot;,
    &quot;prompt_php_at&quot;: &quot;2026-09-25 17:20:14&quot;,
    &quot;config_path&quot;: &quot;/www/wwwroot/001.668668666.com/config.php&quot;,
    &quot;override&quot;: true,
    &quot;override_at&quot;: &quot;2026-09-25 17:29:42&quot;,
    &quot;warnings&quot;: [],
    &quot;probe&quot;: {
        &quot;ok&quot;: true,
        &quot;http&quot;: 200,
        &quot;error&quot;: null,
        &quot;body&quot;: &quot;{\&quot;id\&quot;:\&quot;c9f5de9b-fddd-4691-a042-665ae7110376\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1790333729,\&quot;model\&quot;:\&quot;deepseek-flash\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:\&quot;P\&quot;},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:5,\&quot;completion_tokens\&quot;:1,\&quot;total_tokens\&quot;:6,\&quot;prompt_tokens_details\&quot;:{\&quot;cached_tokens\&quot;:0},\&quot;prompt_cache_hit_tokens\&quot;:0,\&quot;prompt_cache_miss_tokens\&quot;:5},\&quot;sys&quot;
    }
}</pre>
      <p style="font-size:12.5px;color:#8b949e;margin:10px 0 0">
        模型原始回显：<br><code>{&quot;id&quot;:&quot;c9f5de9b-fddd-4691-a042-665ae7110376&quot;,&quot;object&quot;:&quot;chat.completion&quot;,&quot;created&quot;:1790333729,&quot;model&quot;:&quot;deepseek-flash&quot;,&quot;choices&quot;:[{&quot;index&quot;:0,&quot;message&quot;:{&quot;role&quot;:&quot;assistant&quot;,&quot;content&quot;:&quot;P&quot;},&quot;logprobs&quot;:null,&quot;finish_reason&quot;:&quot;length&quot;}],&quot;usage&quot;:{&quot;prompt_tokens&quot;:5,&quot;completion_tokens&quot;:1,&quot;total_tokens&quot;:6,&quot;prompt_tokens_details&quot;:{&quot;cached_tokens&quot;:0},&quot;prompt_cache_hit_tokens&quot;:0,&quot;prompt_cache_miss_tokens&quot;:5},&quot;sys</code>
      </p>
    </details>
    <a class="back" href="?ping=1">只看环境自检 →</a>
  </div>
</div>
</body>
</html>