From 3db6ce86cac97668c5b6061d0dd64d6c6a82a535 Mon Sep 17 00:00:00 2001 From: tt-P607 <68868379+tt-P607@users.noreply.github.com> Date: Mon, 1 Sep 2025 15:29:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(maizone):=20=E4=BF=AE=E5=A4=8D=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E8=AF=84=E8=AE=BA=E6=97=B6=E7=9A=84=E4=B8=BB=E9=A2=98?= =?UTF-8?q?ID=E5=92=8C=E7=88=B6=E8=AF=84=E8=AE=BAID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据企鹅空间的最新接口变更,修复了回复评论时 `topicId` 的构造方式,并为子回复添加了 `parent_tid` 参数,以确保能够正确地回复到指定的父评论。 --- .../built_in/maizone_refactored/services/qzone_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/built_in/maizone_refactored/services/qzone_service.py b/src/plugins/built_in/maizone_refactored/services/qzone_service.py index 004b7fa4f..c6e47e676 100644 --- a/src/plugins/built_in/maizone_refactored/services/qzone_service.py +++ b/src/plugins/built_in/maizone_refactored/services/qzone_service.py @@ -789,8 +789,9 @@ class QZoneService: async def _reply(fid, host_qq, target_name, content, comment_tid): """回复评论""" try: + # 构造需要的参数 data = { - "topicId": f"{host_qq}_{fid}__{comment_tid}", + "topicId": f"{host_qq}_{fid}_2", # 主题ID格式修改 "uin": uin, "hostUin": host_qq, "content": content, @@ -801,6 +802,7 @@ class QZoneService: "ref": "feeds", "richtype": "", "richval": "", + "parent_tid": comment_tid, # 添加父评论ID "paramstr": f"@{target_name} {content}", }