feat(qzone): comment_qzone — comment on a 说说 via web API

commentQzoneMsg POSTs a form body to taotao.qzone.qq.com's
emotion_cgi_re_feeds (proxied through h5.qzone), keyed by topicId
<hostUin>_<tid>__1, as the bot (uin=self) on target_uin's feed (defaults
to the bot's own space). Returns the new comment id best-effort — the
response field name varies (commentid/commentId) so a missing id with
code 0 is still success. Throws on non-zero code/subcode; rejects empty
tid/content pre-flight. WRITE — rate-limit (风控).

topicId shape + comment-id field are extrapolated from community impls,
pending a live capture (labeled in the helper comment).

- core: QzoneApi.comment; onebot: comment_qzone action; regen catalog.
- tests: re_feeds form lock (topicId/uin/hostUin/content/format=fs),
  commentid + camelCase commentId fallback + missing-id success, empty
  tid/content preflight, non-zero code throw, bridge owner-defaulting.
This commit is contained in:
DrSmoothl committed 2026-06-20 02:05:56 +08:00
1 parent 870504ae3a
commit 95f24ffc4a
6 files changed
+253 -2

No files matched your search

+66 -1
View File
@@ -532,6 +532,71 @@ export const ACTIONS: CatalogAction[] = [
},
"category": "扩展"
},
{
"name": "comment_qzone",
"aliases": [],
"summary": "评论一条说说(QQ 空间)",
"readOnly": false,
"params": [
{
"name": "tid",
"type": "string",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"desc": "说说 tid"
},
{
"name": "content",
"type": "string",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"desc": "评论内容"
},
{
"name": "target_uin",
"type": "uint",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
},
"desc": "说说所属 QQ 号,省略则为机器人自己"
}
],
"invariants": [],
"inputSchema": {
"type": "object",
"properties": {
"tid": {
"type": "string",
"minLength": 1,
"description": "说说 tid"
},
"content": {
"type": "string",
"minLength": 1,
"description": "评论内容"
},
"target_uin": {
"type": "integer",
"minimum": 1,
"description": "说说所属 QQ 号,省略则为机器人自己"
}
},
"required": [
"tid",
"content"
],
"additionalProperties": true
},
"category": "空间"
},
{
"name": "complete_group_todo",
"aliases": [],
@@ -6893,6 +6958,6 @@ export const CATEGORIES: CatalogCategory[] = [
},
{
"category": "空间",
"count": 6
"count": 7
}
];