From 2954f3cb5e6e47bb99631672511cdddfb39bda1f Mon Sep 17 00:00:00 2001 From: EduBrain Dev Date: Tue, 14 Apr 2026 14:00:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=94=B6?= =?UTF-8?q?=E5=88=B0=E9=87=8D=E5=A4=8D=E5=9B=BE=E7=89=87=E6=97=B6=E4=B9=9F?= =?UTF-8?q?=E5=9B=9E=E5=A4=8DOCR=E8=AF=86=E5=88=AB=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E7=BB=99=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wework_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/wework_bot.py b/app/wework_bot.py index 712b097..62d766a 100644 --- a/app/wework_bot.py +++ b/app/wework_bot.py @@ -283,10 +283,12 @@ class WeComBotService: if status == "duplicate": dup_id = result.get("duplicate_of", "?") + ocr_text = result.get("ocr_text", "") + preview = ocr_text[:200].replace("\n", " ") if ocr_text else "无识别内容" await self.ws_client.reply_stream( frame, stream_id, - f"该图片内容已存在于知识库中(ID: {dup_id}),无需重复录入。", + f"🔄 该图片内容已存在于知识库中(ID: {dup_id}),无需重复录入。\n\n识别内容:\n{preview}{'...' if len(ocr_text) > 200 else ''}", True, ) elif status == "completed":