feat(qzone): delete_qzone_msg — delete a 说说 by tid via web API

deleteQzoneMsg POSTs a form-urlencoded tid to taotao.qzone.qq.com's
emotion_cgi_delete_v6 (proxied through h5.qzone), on the bot's own space.
Success has no positive payload beyond code 0, so the contract is
throw-on-non-zero-code (foreign/unknown tid or auth failure); the server
only deletes feeds the hostUin owns. Rejects empty tid pre-flight.

- core: QzoneApi.delete; onebot: delete_qzone_msg action; regen catalog.
- tests: tid form-body/url/headers lock, empty-tid preflight, non-zero
  code throw, and bridge self-space threading.
This commit is contained in:
DrSmoothl committed 2026-06-20 01:47:50 +08:00
1 parent 9e21c3a7ef
commit a704f12945
6 files changed
+159 -2

No files matched your search

+35 -1
View File
@@ -1015,6 +1015,40 @@ export const ACTIONS: CatalogAction[] = [
},
"category": "消息"
},
{
"name": "delete_qzone_msg",
"aliases": [],
"summary": "删除一条说说(QQ 空间,按 tid)",
"readOnly": false,
"params": [
{
"name": "tid",
"type": "string",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"desc": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
}
],
"invariants": [],
"inputSchema": {
"type": "object",
"properties": {
"tid": {
"type": "string",
"minLength": 1,
"description": "说说 tid(来自 get_qzone_msg_list / send_qzone_msg)"
}
},
"required": [
"tid"
],
"additionalProperties": true
},
"category": "空间"
},
{
"name": "do_group_album_comment",
"aliases": [],
@@ -6727,6 +6761,6 @@ export const CATEGORIES: CatalogCategory[] = [
},
{
"category": "空间",
"count": 3
"count": 4
}
];