fix(maizone): 修复回复评论时的主题ID和父评论ID

根据企鹅空间的最新接口变更,修复了回复评论时 `topicId` 的构造方式,并为子回复添加了 `parent_tid` 参数,以确保能够正确地回复到指定的父评论。
This commit is contained in:
tt-P607
2025-09-01 15:29:33 +08:00
committed by Windpicker-owo
parent e9dde311ed
commit 3db6ce86ca

View File

@@ -789,8 +789,9 @@ class QZoneService:
async def _reply(fid, host_qq, target_name, content, comment_tid): async def _reply(fid, host_qq, target_name, content, comment_tid):
"""回复评论""" """回复评论"""
try: try:
# 构造需要的参数
data = { data = {
"topicId": f"{host_qq}_{fid}__{comment_tid}", "topicId": f"{host_qq}_{fid}_2", # 主题ID格式修改
"uin": uin, "uin": uin,
"hostUin": host_qq, "hostUin": host_qq,
"content": content, "content": content,
@@ -801,6 +802,7 @@ class QZoneService:
"ref": "feeds", "ref": "feeds",
"richtype": "", "richtype": "",
"richval": "", "richval": "",
"parent_tid": comment_tid, # 添加父评论ID
"paramstr": f"@{target_name} {content}", "paramstr": f"@{target_name} {content}",
} }