feat(qzone): like_qzone / unlike_qzone — like/unlike a 说说 via web API

setQzoneLike POSTs a form body to w.qzone.qq.com's internal_dolike_app
(like) or internal_unlike_app (unlike), proxied through h5.qzone, keyed by
the feed's mood unikey/curkey (http://user.qzone.qq.com/<uin>/mood/<tid>)
and fid=tid, as the bot (opUin). target_uin selects whose 说说 (defaults
to the bot's own); scope is 说说 (mood, appid 311). Throws on non-zero
code/subcode. Rejects empty tid pre-flight. WRITE — rate-limit (风控).

- core: QzoneApi.like(tid, targetUin?, like); onebot: like_qzone +
  unlike_qzone actions; regen catalog.
- tests: dolike vs unlike CGI selection, unikey/curkey/fid/opuin form
  lock, empty-tid preflight, code+subcode throws, and bridge owner-
  defaulting (self vs friend) + like-flag threading.
This commit is contained in:
DrSmoothl committed 2026-06-20 01:56:23 +08:00
1 parent e406a3bc2b
commit d497f1e6c7
6 files changed
+287 -2

No files matched your search

+99 -1
View File
@@ -3380,6 +3380,55 @@ export const ACTIONS: CatalogAction[] = [
},
"category": "扩展"
},
{
"name": "like_qzone",
"aliases": [],
"summary": "给一条说说点赞(QQ 空间)",
"readOnly": false,
"params": [
{
"name": "tid",
"type": "string",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"desc": "说说 tid"
},
{
"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"
},
"target_uin": {
"type": "integer",
"minimum": 1,
"description": "说说所属 QQ 号,省略则为机器人自己"
}
},
"required": [
"tid"
],
"additionalProperties": true
},
"category": "空间"
},
{
"name": "mark_group_msg_as_read",
"aliases": [],
@@ -6369,6 +6418,55 @@ export const ACTIONS: CatalogAction[] = [
},
"category": "扩展"
},
{
"name": "unlike_qzone",
"aliases": [],
"summary": "取消对一条说说的点赞(QQ 空间)",
"readOnly": false,
"params": [
{
"name": "tid",
"type": "string",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"desc": "说说 tid"
},
{
"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"
},
"target_uin": {
"type": "integer",
"minimum": 1,
"description": "说说所属 QQ 号,省略则为机器人自己"
}
},
"required": [
"tid"
],
"additionalProperties": true
},
"category": "空间"
},
{
"name": "upload_forward_msg",
"aliases": [],
@@ -6761,6 +6859,6 @@ export const CATEGORIES: CatalogCategory[] = [
},
{
"category": "空间",
"count": 4
"count": 6
}
];