feat: refine AI-only risk reply rules and remove fixed preview scripts
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled

This commit is contained in:
codex-bot
2026-03-02 22:45:18 +08:00
parent 94b8caf354
commit 13cc01df90
2 changed files with 3 additions and 5 deletions

View File

@@ -225,11 +225,7 @@ class QingjianClient:
)
if draw_res.get("ok"):
preview_url = str(draw_res.get("url", "") or "")
await self.send_reply(data, "先给你做了预览图。", trace_id=trace_id)
await self.send_image(data, preview_url, trace_id=trace_id)
final_text = "看下预览,满意再拍下付款。"
await self.send_reply(data, final_text, trace_id=trace_id)
self.last_reply_key[key] = final_text
# 预览完成后清掉当前批次,避免同一图重复触发
self.pending_images[key].clear()
activity_event(
@@ -242,7 +238,7 @@ class QingjianClient:
await post_tianwang_callback(
"message_processed",
data,
extra={"trace_id": trace_id, "route": route, "action": "quote", "reply": final_text, "auto_draw": True},
extra={"trace_id": trace_id, "route": route, "action": "quote", "reply": "", "auto_draw": True},
)
return
activity_event(