Skip to main content

合规闸门 · 改前改后各截一张图

像素比对找出变化区域,qwen4-max 对照合规清单逐区判断并定级,汇总为一份放行判定。

一次普通的样式改版,可能让风险提示“隐身”、让业绩基准的小数点右移、让协议文字缩到不可读。这类问题在代码评审中不容易发现,人工走查又难以逐页覆盖。本玩法给改前、改后的页面各截一张图:先用像素比对找出全部变化区域,再让 qwen4-max 对照合规清单逐区判断变化是否违规、给出严重等级,最后汇总成一份放行判定。本篇以一个虚构理财产品手机页面跑通,方法同样适用于银行、保险、证券类 App 页面与电商活动页的发布前视觉检查。
免责声明:本页展示内容均为 AI 模型生成,仅供参考,不构成任何效果承诺;文中理财产品页面、机构名称、登记编号与费率数据均为合成虚构素材,不指向任何真实标的,不构成投资建议,三处问题改动为演示目的刻意植入;实际产出效果与 Credits 消耗以控制台“用量详情”为准。
调用链:准备正确版页面 → 植入 3 处问题改动 → 两个版本分别截图 → 逐像素比对框出全部变化块 → qwen4-max 对照合规清单逐区判断是否违规并定级 → 汇总放行判定。全链工具:Playwright(截图)、Pillow(像素比对);模型仅在判断环节调用一次。

实测产出

输入素材与脚本原文见步骤 1–5。
三处植入的问题全部被识别并定级:风险提示隐身与基准数字虚高判 P0(高风险,阻断发布),协议字号过小判 P1(影响阅读,整改后复验);未改动的对照区判 none(无问题),逐项确认与改前一致。
区域植入的问题模型定级预期定级判定
I1 风险提示正文颜色改为纯白,与白底相同(视觉隐身)P0P0命中
I2 业绩基准2.85% 改为 28.5%(小数点右移一位)P0P0命中
I3 协议文本字号 13px 缩至 7px(不可读)P1P1命中
对照区(期限/起购/风险等级/适合投资者)未做任何改动none无问题零误报
整页变化块叠加:蓝框为三处问题区域,黄框为内容未变、仅发生位置移动的区域
整页变化块叠加:蓝框为三处问题区域,黄框为内容没变、只是位置移动的区域。

操作步骤

步骤 1:准备正确版页面与合规清单

正确版页面是一个要素齐备的虚构理财产品详情页(手机宽度 390px),覆盖 8 条合规要素:风险提示显著可读、业绩基准数字准确、产品期限清楚、起购金额清楚、风险等级清楚、适合投资者清楚、协议文本清晰可读、备案托管信息显著。每个要素带固定编号,便于按区域截图,页面底部印有虚构声明。 正确版页面 HTML(输入)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>安心周盈 180 天 · 产品详情(演示)</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; background: #f4f5f7; color: #22262e; width: 390px; margin: 0 auto; -webkit-font-smoothing: antialiased; }
  .num { font-family: "DIN Alternate", "Bahnschrift", "PingFang SC", sans-serif; font-variant-numeric: tabular-nums; }

  /* 状态栏 + 导航栏 */
  .statusbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 4px; background: #fff; font-size: 13px; font-weight: 600; }
  .statusbar .icons { display: flex; gap: 5px; align-items: center; }
  .navbar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; background: #fff; border-bottom: 1px solid #f0f1f3; }
  .navbar .title { font-size: 16px; font-weight: 600; }
  .navbar .nav-ic { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #3a3f47; }
  .navbar .right { display: flex; gap: 6px; }

  /* 收益头部 */
  .hero { background: linear-gradient(180deg, #FBF1E4 0%, #FDF8F1 55%, #f4f5f7 100%); padding: 18px 16px 14px; }
  .bank { display: flex; align-items: center; gap: 9px; }
  .bank .logo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #C24A2E, #A93A22); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; box-shadow: 0 2px 6px rgba(178,62,38,.25); }
  .bank .name { font-size: 15px; font-weight: 600; }
  .bank .sub { font-size: 11px; color: #9a8f80; margin-top: 1px; }
  .bank .verify { margin-left: auto; font-size: 10.5px; color: #B4833E; border: 1px solid #E4CFA8; background: #FFF9EE; border-radius: 3px; padding: 1px 6px; }
  .prod-title { font-size: 21px; font-weight: 700; margin: 15px 0 8px; letter-spacing: .2px; }
  .tags { display: flex; gap: 6px; }
  .prod-tag { font-size: 10.5px; color: #B5432A; background: rgba(181,67,42,.07); border: 1px solid rgba(181,67,42,.22); border-radius: 3px; padding: 1.5px 7px; }
  .rate-row { display: flex; align-items: baseline; margin: 16px 0 3px; }
  .rate-label { font-size: 12px; color: #8d8478; margin-right: 10px; }
  .rate-num { font-size: 42px; font-weight: 700; color: #C8401F; line-height: 1; letter-spacing: -.5px; }
  .rate-unit { font-size: 17px; font-weight: 600; color: #C8401F; margin-left: 2px; }
  .rate-side { margin-left: auto; text-align: right; }
  .rate-side .v { display: block; font-size: 15px; font-weight: 600; color: #5a5248; }
  .rate-side .k { display: block; font-size: 10.5px; color: #9a8f80; margin-top: 2px; }
  .rate-note { font-size: 11px; color: #a09688; margin-top: 6px; }

  /* 通用卡片 */
  .card { background: #fff; border-radius: 12px; margin: 10px 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(30,34,42,.04); }
  .card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
  .card h3 .more { margin-left: auto; font-size: 11px; color: #b0b6c0; font-weight: 400; }

  /* 对照区:四宫格 */
  .grid { display: flex; background: #fff; border-radius: 12px; margin: 10px 12px; padding: 13px 0; box-shadow: 0 1px 3px rgba(30,34,42,.04); }
  .cell { flex: 1; text-align: center; border-right: 1px solid #f0f1f3; }
  .cell:last-child { border-right: none; }
  .cell .v { font-size: 15px; font-weight: 600; }
  .cell .k { font-size: 11px; color: #8a919f; margin-top: 3px; }

  /* 净值走势 */
  .chart-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: #b0b6c0; margin-top: 4px; }
  .chart-tag { font-size: 10px; color: #b0b6c0; border: 1px solid #e6e9ef; border-radius: 3px; padding: 0 5px; }

  /* 产品要素表 */
  .kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f5f6f8; font-size: 12.5px; }
  .kv:last-child { border-bottom: none; }
  .kv .k { color: #8a919f; }
  .kv .v { color: #22262e; font-weight: 500; }

  /* 风险提示(注入锚点 I1:所在卡片必须纯白底) */
  .risk-notice { font-size: 12px; color: #8a919f; line-height: 1.75; }

  /* 协议行(注入锚点 I3) */
  .agree-row { font-size: 13px; color: #4e5561; }
  .agree-row { display: flex; align-items: flex-start; gap: 7px; line-height: 1.6; }
  .agree-row .cb { flex: none; width: 15px; height: 15px; margin-top: 3px; }
  .agree-row a { color: #2b5fd9; text-decoration: none; }

  /* 托管备案 */
  .custody { font-size: 12px; color: #8a919f; line-height: 1.9; }

  /* 购买区 */
  .buybar { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 13px 16px 15px; box-shadow: 0 1px 3px rgba(30,34,42,.04); }
  .match { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #0DA740; background: #F0FAF3; border-radius: 6px; padding: 6px 10px; margin-bottom: 11px; }
  .buy-btn { display: block; width: 100%; border: none; border-radius: 999px; padding: 12px 0; font-size: 16px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #D95B33, #C2401F); box-shadow: 0 4px 12px rgba(201,64,31,.28); letter-spacing: 2px; }
  .buy-slogan { text-align: center; font-size: 10.5px; color: #b0b6c0; margin-top: 9px; }
  .footer-note { text-align: center; font-size: 10.5px; color: #b8bdc6; padding: 12px 26px 22px; line-height: 1.7; }
</style>
</head>
<body>
  <!-- 状态栏 -->
  <div class="statusbar">
    <span class="num">9:41</span>
    <span class="icons">
      <svg width="17" height="11" viewBox="0 0 17 11" fill="#22262e"><rect x="0" y="7" width="3" height="4" rx="1"/><rect x="4.5" y="5" width="3" height="6" rx="1"/><rect x="9" y="2.5" width="3" height="8.5" rx="1"/><rect x="13.5" y="0" width="3" height="11" rx="1"/></svg>
      <svg width="16" height="11" viewBox="0 0 16 11" fill="#22262e"><path d="M8 9.5a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8zM8 5.6c-1.9 0-3.6.7-4.9 1.9l1.3 1.3A5.3 5.3 0 0 1 8 7.4c1.4 0 2.7.5 3.6 1.4l1.3-1.3A7 7 0 0 0 8 5.6zM8 1.5C5 1.5 2.2 2.7.2 4.7l1.3 1.3A9.4 9.4 0 0 1 8 3.3c2.5 0 4.8 1 6.5 2.7l1.3-1.3A11.3 11.3 0 0 0 8 1.5z" transform="translate(0,-1.5)"/></svg>
      <svg width="25" height="12" viewBox="0 0 25 12"><rect x="0.5" y="0.5" width="21" height="11" rx="3" fill="none" stroke="#22262e" stroke-opacity=".4"/><rect x="2" y="2" width="15" height="8" rx="1.6" fill="#22262e"/><rect x="22.5" y="3.5" width="2" height="5" rx="1" fill="#22262e" fill-opacity=".4"/></svg>
    </span>
  </div>
  <!-- 导航栏 -->
  <div class="navbar">
    <span class="nav-ic"><svg width="11" height="19" viewBox="0 0 11 19" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 1.5 2 9.5l7.5 8"/></svg></span>
    <span class="title">产品详情</span>
    <span class="right">
      <span class="nav-ic"><svg width="19" height="19" viewBox="0 0 19 19" fill="none" stroke="currentColor" stroke-width="1.6"><circle cx="9.5" cy="9.5" r="8"/><path d="M6.8 7.2a2.8 2.8 0 1 1 3.9 2.6c-.8.35-1.2.9-1.2 1.7v.3" stroke-linecap="round"/><circle cx="9.5" cy="14.2" r=".9" fill="currentColor" stroke="none"/></svg></span>
      <span class="nav-ic"><svg width="19" height="5" viewBox="0 0 19 5" fill="currentColor"><circle cx="2.5" cy="2.5" r="1.8"/><circle cx="9.5" cy="2.5" r="1.8"/><circle cx="16.5" cy="2.5" r="1.8"/></svg></span>
    </span>
  </div>

  <!-- 收益头部 -->
  <div class="hero">
    <div class="bank">
      <div class="logo">恒</div>
      <div>
        <div class="name">恒盛理财</div>
        <div class="sub">银行理财子公司 · 演示机构</div>
      </div>
      <span class="verify">官方直销</span>
    </div>
    <div class="prod-title">安心周盈 180 天</div>
    <div class="tags">
      <span class="prod-tag">R2 低风险</span>
      <span class="prod-tag">固定周期</span>
      <span class="prod-tag">公募理财</span>
      <span class="prod-tag">摊余成本法</span>
    </div>
    <!-- 要素2:业绩比较基准 -->
    <div class="rate-row" id="benchmark">
      <span class="rate-label">业绩比较基准<br>(年化)</span>
      <span class="rate-num">2.85</span><span class="rate-unit">%</span>
      <span class="rate-side"><span class="v num">1.0285</span><span class="k">最新单位净值</span></span>
    </div>
    <div class="rate-note">业绩比较基准不代表投资收益,不构成收益承诺 · 净值更新至 2026-11-24(演示数据)</div>
  </div>

  <!-- 要素3/4/5/6:对照区四宫格 -->
  <div class="grid">
    <div class="cell"><div class="v num">180 天</div><div class="k">产品期限</div></div>
    <div class="cell"><div class="v num">1,000 元</div><div class="k">起购金额</div></div>
    <div class="cell"><div class="v">R2</div><div class="k">风险等级</div></div>
    <div class="cell"><div class="v">C2 及以上</div><div class="k">适合投资者</div></div>
  </div>

  <!-- 净值走势(演示数据) -->
  <div class="card">
    <h3><svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="#B5432A" stroke-width="1.5" stroke-linecap="round"><path d="M1.5 11.5 5 7.5l2.5 2L12.5 3"/><path d="M9.5 3h3v3"/></svg>净值走势<span class="more">近六月 ›</span></h3>
    <svg width="100%" height="86" viewBox="0 0 326 86" preserveAspectRatio="none">
      <defs><linearGradient id="nv" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#C8401F" stop-opacity=".16"/><stop offset="1" stop-color="#C8401F" stop-opacity="0"/></linearGradient></defs>
      <line x1="0" y1="22" x2="326" y2="22" stroke="#f0f1f3"/><line x1="0" y1="48" x2="326" y2="48" stroke="#f0f1f3"/><line x1="0" y1="74" x2="326" y2="74" stroke="#f0f1f3"/>
      <path d="M0 66 L27 63 L54 64 L81 58 L108 55 L135 56 L162 49 L189 45 L216 46 L243 38 L270 34 L297 30 L326 24 L326 86 L0 86 Z" fill="url(#nv)"/>
      <path d="M0 66 L27 63 L54 64 L81 58 L108 55 L135 56 L162 49 L189 45 L216 46 L243 38 L270 34 L297 30 L326 24" fill="none" stroke="#C8401F" stroke-width="1.8" stroke-linejoin="round"/>
      <circle cx="326" cy="24" r="3" fill="#C8401F"/><circle cx="326" cy="24" r="6" fill="#C8401F" fill-opacity=".15"/>
    </svg>
    <div class="chart-meta"><span>2026-05</span><span class="chart-tag">演示数据 · 非真实净值</span><span>2026-11</span></div>
  </div>

  <!-- 产品要素 -->
  <div class="card">
    <h3>产品要素<span class="more">产品说明书 ›</span></h3>
    <div class="kv"><span class="k">募集期</span><span class="v num">2026-11-25 至 2026-12-02</span></div>
    <div class="kv"><span class="k">起息日</span><span class="v num">2026-12-03</span></div>
    <div class="kv"><span class="k">到期日</span><span class="v num">2027-06-01</span></div>
    <div class="kv"><span class="k">赎回方式</span><span class="v">封闭式,存续期内不可赎回</span></div>
    <div class="kv"><span class="k">收益分配</span><span class="v">到期一次性还本付息</span></div>
    <div class="kv"><span class="k">投资范围</span><span class="v">固定收益类资产不低于 80%</span></div>
  </div>

  <!-- 要素1:风险提示 -->
  <div class="card">
    <h3><svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="#8a919f" stroke-width="1.4" stroke-linejoin="round"><path d="M7 1.2 12.4 3.4v3.4c0 3.2-2.3 5.4-5.4 6.4-3.1-1-5.4-3.2-5.4-6.4V3.4L7 1.2z"/><path d="M7 4.6v3" stroke-linecap="round"/><circle cx="7" cy="9.8" r=".7" fill="#8a919f" stroke="none"/></svg>投资风险提示</h3>
    <p class="risk-notice" id="risk-notice">本理财产品不承诺保证本金和收益,可能因市场波动导致投资亏损。理财非存款,产品有风险,投资须谨慎。本产品为封闭式净值型产品,存续期内不支持赎回,请合理安排资金。过往业绩不代表未来表现,管理人管理的其他产品业绩不构成对本产品业绩的保证。请先完成风险承受能力评估后购买。</p>
  </div>

  <!-- 要素7:协议文本 -->
  <div class="card">
    <p class="agree-row" id="agree-row"><svg class="cb" viewBox="0 0 15 15" fill="none"><circle cx="7.5" cy="7.5" r="6.8" stroke="#c3c9d4" stroke-width="1.2"/></svg><span>我已阅读并同意 <a href="#">《产品说明书》</a><a href="#">《风险揭示书》</a><a href="#">《投资者权益须知》</a></span></p>
  </div>

  <!-- 要素8:托管与备案 -->
  <div class="card">
    <h3>产品备案与托管</h3>
    <p class="custody">全国银行业理财信息登记系统编码:Z1234520260001(演示编号)<br>产品管理人:恒盛理财有限责任公司(演示机构)<br>托管机构:示例银行股份有限公司(演示机构)</p>
  </div>

  <!-- 购买区 -->
  <div class="buybar">
    <div class="match"><svg width="13" height="13" viewBox="0 0 13 13" fill="none"><circle cx="6.5" cy="6.5" r="6" fill="#0DA740"/><path d="M3.8 6.7 5.7 8.6 9.3 4.7" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>风险测评结果 C2(稳健型)· 与本产品风险等级匹配</div>
    <button class="buy-btn">立即购买</button>
    <div class="buy-slogan">理财非存款 · 产品有风险 · 投资须谨慎</div>
  </div>

  <div class="footer-note">本页面为合成演示素材,机构、编号、净值与数据均为虚构,不构成任何投资建议或销售要约。</div>
</body>
</html>

步骤 2:植入三处问题改动

用脚本对正确版页面做三处精确替换,模拟一次“带问题的改版”:每处先确认原文在全页只出现一次再替换,避免误改别处,并写出问题记录 injection_log.json,供后续核对模型判定。 注入脚本
#!/usr/bin/env python3
"""注入 3 处合规回归到基线页,生成 regression.html + 真值 injection_log.json。
每处注入都对应一条明确合规要素违规,作为「开卷考试」标准答案。"""
import json, os

BASE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "assets")
baseline = open(os.path.join(BASE_DIR, "baseline.html"), encoding="utf-8").read()

# (id, 合规要素, 原文片段, 替换片段, 预期违规描述)
INJECTIONS = [
    ("I1", "要素1 风险提示可见性",
     '<p class="risk-notice" id="risk-notice">',
     '<p class="risk-notice" id="risk-notice" style="color:#ffffff">',
     "投资风险提示正文颜色改为纯白(与白底相同),肉眼完全不可见,违反『风险提示必须显著展示』。"),
    ("I2", "要素2 费率小数点错位",
     '<span class="rate-num">2.85</span>',
     '<span class="rate-num">28.5</span>',
     "业绩比较基准由 2.85% 改为 28.5%(小数点右移一位,数值虚高约 10 倍),违反『费率数字准确展示』。"),
    ("I3", "要素7 协议字号不可读",
     ".agree-row { font-size: 13px; color: #4e5561; }",
     ".agree-row { font-size: 7px; color: #4e5561; }",
     "『我已阅读并同意』协议行字号由 13px 缩到 7px,几乎不可读,违反『协议文本必须清晰可读』。"),
]

regression = baseline
log = []
for iid, elem, old, new, expect in INJECTIONS:
    assert regression.count(old) == 1, f"{iid} 原文匹配次数异常: {regression.count(old)}"
    regression = regression.replace(old, new, 1)
    log.append({"id": iid, "element": elem, "injected": new[:60], "expected_violation": expect})

open(os.path.join(BASE_DIR, "regression.html"), "w", encoding="utf-8").write(regression)
json.dump({"injections": log, "control": "grid 期限/起购/风险等级卡片区未改动,应零误报"},
          open(os.path.join(BASE_DIR, "injection_log.json"), "w", encoding="utf-8"),
          ensure_ascii=False, indent=2)
print("regression.html 与 injection_log.json 已生成,注入", len(log), "处:")
for x in log:
    print(" -", x["id"], x["element"])
编号对应要素问题手法预期违规
I1要素 1 风险提示可见性正文颜色改为 #ffffff(与卡片白底相同)风险提示视觉隐身,P0
I2要素 2 费率数字准确2.85 替换为 28.5业绩基准虚高约 10 倍,P0
I3要素 7 协议清晰可读协议行字号 13px 改为 7px协议文本不可读,P1

步骤 3:两个版本分别截图

用自动截图工具 Playwright 以手机宽度 390px、2 倍清晰度打开两版页面:各截一张整页图,再按编号对三个问题要素与一个未改动对照区各截一张局部特写图,并记录位置供后续核对。页面比一屏高时,滚动会让位置记录失准,脚本先把窗口撑到整页高度再记录位置。

步骤 4:像素比对找出变化区域

逐像素比对分两层:先在整页上框出全部变化块,并核对三处问题是否都被框到;再按区域计算变化像素占比,颜色差别超过允许误差才算变化,过滤截图渲染带来的细小噪声。
区域变化像素占比说明
I1 风险提示16.51%三行文字整体由灰变白
I2 业绩基准2.94%只有数字写法变了,小区域同样被框到
I3 协议文本27.58%字号缩小导致整行重排
对照区0.00%未改动区域逐像素一致
整页共框出 20 个变化块,三处问题全部框到(3/3);其中 13 个落在问题区域之外——协议行缩字号后卡片变矮,下方托管信息与页脚整体上移,这些“内容没变、只是位置移动”的区域也被框成变化块。像素比对负责回答“哪里可能变了”,宁可多框、不能漏框;“只是位置移动”与“真实违规”的区分交给下一步模型判断,避免仅凭比对结果告警产生大量误报。

步骤 5:模型逐区判断是否违规

把四组改前/改后对照图与合规清单放进同一条请求发给 qwen4-max(图片直接内嵌在请求里),要求按固定表格逐区回答:变没变、变了什么、是否违规、严重等级(P0=高风险必须阻断、P1=影响阅读应整改、P2=轻微问题、none=无问题),不许自由发挥。 正确版与问题版对比

正确版(改前):8 条合规要素齐备

正确版理财产品页面:风险提示、业绩基准、期限、起购金额、风险等级、适合投资者、协议文本与备案信息齐备

问题版(改后):风险提示隐身、基准虚高、协议字号缩小

问题版理财产品页面:风险提示不可见,业绩比较基准显示为 28.5%,协议行字号缩小
分区对比图(按问题区域定位)

I1 风险提示(改前)

I1 风险提示改前

I1 风险提示(改后:视觉隐身)

I1 风险提示改后

I2 业绩基准(改前)

I2 业绩基准改前

I2 业绩基准(改后:28.5%)

I2 业绩基准改后

I3 协议文本(改前)

I3 协议文本改前

I3 协议文本(改后:7px)

I3 协议文本改后

对照区(改前)

对照区改前

对照区(改后:无变化)

对照区改后
你在做金融产品 App 页面的发布前合规回归核验。下面按区给出「改前(正确版)→ 改后(问题版)」两张截图。
合规清单:
1. 风险提示必须显著可读
2. 业绩比较基准数字必须准确
3. 产品期限清楚
4. 起购金额清楚
5. 风险等级清楚
6. 适合投资者清楚
7. 协议文本必须清晰可读
8. 备案托管信息显著

请对每个区判断:内容/样式是否变化、变化是什么、是否构成合规违规、定级 P0(高危违规)/P1(影响可读)/P2(轻微)/none(无问题)。逐区输出,格式固定为:
{
  "regions": [
    {
      "region": "区域编号",
      "changed": true 或 false,
      "what_changed": "变化描述",
      "compliance_issue": true 或 false,
      "severity": "P0 或 P1 或 P2 或 none",
      "reason": "判断依据"
    }
  ]
}
关键参数:模型 qwen4-max · 固定格式判定表输出 · 输出长度上限 3000(模型的思考过程也计入)· 四组对照图与清单放在同一条请求里。
给模型预留充足的输出长度。该模型的思考过程也计入输出长度,预留过小会导致判定正文被截断。

步骤 6:汇总放行判定

脚本把模型逐区判定与问题记录自动对照:含 P0 的版本阻断发布,P1 整改后复验,其余放行。模型对 I2 的描述精确到违规本质:“业绩比较基准(年化)数值由 2.85% 变为 28.5%,小数点位置右移一位,数值放大 10 倍”;对 I1 指出“整体消失,区域变为纯空白,无任何文字或占位”。 接入真实业务时,可把本链路设为发布前自动检查:页面做好后截图、比对、判断、核对,报告随发布单存档。

说明

  • 覆盖边界:本链路只检查“渲染完成后的页面长相”;按钮点击后的效果、稍后才加载出的内容、不同机型的显示差异不在检查范围内,正式发布决策仍应遵循机构自身的合规审查流程,本玩法作为辅助验收工具。
  • 清单可替换:文中 8 条合规清单为演示标准;接入真实业务时按机构现行合规规范逐条改写,模型判断以输入的清单为准。
  • 素材声明:理财产品页面、机构名称、登记编号与费率数据均为合成虚构的演示素材,三处问题改动为演示目的刻意植入。