feat(qzone): get_qzone_msg_list — read personal Qzone 说说 list via web API
First slice of personal QQ-Zone (个人空间) support, an exclusive feature vs NapCat/SL (both only do group albums). Read-only to prove out the auth+parse chain before write ops (publish/like/comment). - protocol/web/qzone.ts: getQzoneMsgList over taotao.qzone.qq.com's emotion_cgi_msglist_v6 (h5.qzone proxy), reusing the same cookie/g_tk plumbing as group-album. JSONP-tolerant parse; throws on auth failure rather than swallowing to [] (mirrors group-signin contract). - core: QzoneApi bridge class wired into ApiHub. - onebot: get_qzone_msg_list action (target_uin/pos/num), regenerated MCP catalog + new 空间 doc category. - HTTP-layer tests lock URL/params, JSONP stripping, field mapping, and the throw-on-auth-failure paths (9 cases, all green). Exact CGI params/response fields to be re-confirmed against a live capture when extending (same maintenance posture as group-album).
This commit is contained in:
9 files changed
+409
No files matched your search
@@ -3000,6 +3000,73 @@ export const ACTIONS: CatalogAction[] = [
|
||||
},
|
||||
"category": "群相册"
|
||||
},
|
||||
{
|
||||
"name": "get_qzone_msg_list",
|
||||
"aliases": [],
|
||||
"summary": "获取 QQ 空间说说列表(默认机器人自己的空间)",
|
||||
"readOnly": true,
|
||||
"params": [
|
||||
{
|
||||
"name": "target_uin",
|
||||
"type": "uint",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"desc": "目标 QQ 号,省略则取机器人自己"
|
||||
},
|
||||
{
|
||||
"name": "pos",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"desc": "起始偏移",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "num",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100
|
||||
},
|
||||
"desc": "本页数量",
|
||||
"default": 20
|
||||
}
|
||||
],
|
||||
"invariants": [],
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target_uin": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"description": "目标 QQ 号,省略则取机器人自己"
|
||||
},
|
||||
"pos": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "起始偏移",
|
||||
"default": 0
|
||||
},
|
||||
"num": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"description": "本页数量",
|
||||
"default": 20
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
},
|
||||
"category": "空间"
|
||||
},
|
||||
{
|
||||
"name": "get_recent_contact",
|
||||
"aliases": [],
|
||||
@@ -6571,5 +6638,9 @@ export const CATEGORIES: CatalogCategory[] = [
|
||||
{
|
||||
"category": "群相册",
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"category": "空间",
|
||||
"count": 1
|
||||
}
|
||||
];
|
||||
Reference in new issue
Block a user