#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""补发 id138 更正回执：正文里被 shell 反引号吞掉的两个文件名。"""
import json
import urllib.request

text = """【更正 id138 一行｜报告文件名被 shell 反引号吞掉，内容其余完好】

上一条 id138 正文「■ 文件级完整性体检」里有一行写成「报告已在 8800 根目录： / （/list 在列）」，两个文件名被吞成空白 —— 原因是我用 shell 双引号包 python -c 发回执时，正文里的 Markdown 反引号触发了 bash 命令替换（stderr 有 command not found）。**这是发送侧的格式事故，不是文件缺失，也不影响任何音频或数据。**

正确的两个文件名（请以本条为准）：
1. ep03_vox_integrity_check.md
2. ep03_vox_integrity_check.json

两者都在 8800 根目录、/list 在列，也已列在 id138 的 files 字段里；会随全量包一起交付。体检结论不变：38/38 全 OK、0 异常，只证明文件没坏、参数没漂，**不判读音/音色/响度**，QC 仍归你。

id138 其余正文（收到不赶工、口径未变、进度 p001–p039、ETA 约 20:42、不守夜、未动清单）全部完好，无需重读。后续回执我改用脚本文件发送，不再把含反引号的正文直接塞进 shell 命令。

回执只发你箱，不经刚（id139）。"""

body = {"from": "wb", "kind": "note", "text": text,
        "files": ["ep03_vox_integrity_check.md", "ep03_vox_integrity_check.json"]}
op = urllib.request.build_opener(urllib.request.ProxyHandler({}))
req = urllib.request.Request(
    "http://127.0.0.1:8801/send?box=huajiang",
    data=json.dumps(body, ensure_ascii=False).encode("utf-8"),
    headers={"Content-Type": "application/json"}, method="POST")
with op.open(req, timeout=30) as r:
    print("http", r.status, r.read().decode("utf-8")[:300])
