fix(onebot): return profile like user details

Restore the interaction user lists returned by get_profile_like and keep self and other-user lookups consistent with the current client behavior.

Resolve missing account identities when needed, surface lookup failures, and update the public action catalog with the completed response shape. Add regression coverage for request selection, response decoding, identity enrichment, and malformed results.

Fixes #349
This commit is contained in:
DrSmoothl committed 2026-08-11 23:46:46 +08:00
1 parent b38db6715f
commit 8ded1065d4
9 files changed
+717 -70

No files matched your search

+177 -3
View File
@@ -6175,7 +6175,7 @@ export const ACTIONS: CatalogAction[] = [
"name": "get_profile_like",
"aliases": [],
"summary": "获取资料点赞",
"returns": "点赞资料:uid、最近点赞时间、收藏(favoriteInfo)与点赞(voteInfo)统计。",
"returns": "点赞资料:uid、最近点赞时间、收藏与点赞统计及用户明细。",
"returnsSchema": {
"type": "object",
"properties": {
@@ -6205,7 +6205,94 @@ export const ACTIONS: CatalogAction[] = [
},
"userInfos": {
"type": "array",
"description": "用户列表(恒空)"
"description": "收藏用户列表",
"items": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"description": "用户 uid"
},
"uin": {
"type": "integer",
"description": "用户 QQ 号;资料中没有有效号码时为 0"
},
"src": {
"type": "integer",
"description": "来源类型"
},
"latestTime": {
"type": "integer",
"description": "最近互动时间戳"
},
"count": {
"type": "integer",
"description": "互动次数"
},
"giftCount": {
"type": "integer",
"description": "礼物数量"
},
"customId": {
"type": "integer",
"description": "自定义标识"
},
"lastCharged": {
"type": "integer",
"description": "最近充能时间"
},
"bAvailableCnt": {
"type": "integer",
"description": "可用次数"
},
"bTodayVotedCnt": {
"type": "integer",
"description": "今日已点赞次数"
},
"nick": {
"type": "string",
"description": "昵称"
},
"gender": {
"type": "integer",
"description": "性别"
},
"age": {
"type": "integer",
"description": "年龄"
},
"isFriend": {
"type": "boolean",
"description": "是否为好友"
},
"isvip": {
"type": "boolean",
"description": "是否为会员"
},
"isSvip": {
"type": "boolean",
"description": "是否为超级会员"
}
},
"required": [
"uid",
"uin",
"src",
"latestTime",
"count",
"giftCount",
"customId",
"lastCharged",
"bAvailableCnt",
"bTodayVotedCnt",
"nick",
"gender",
"age",
"isFriend",
"isvip",
"isSvip"
]
}
}
}
},
@@ -6231,7 +6318,94 @@ export const ACTIONS: CatalogAction[] = [
},
"userInfos": {
"type": "array",
"description": "用户列表(恒空)"
"description": "点赞用户列表",
"items": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"description": "用户 uid"
},
"uin": {
"type": "integer",
"description": "用户 QQ 号;资料中没有有效号码时为 0"
},
"src": {
"type": "integer",
"description": "来源类型"
},
"latestTime": {
"type": "integer",
"description": "最近互动时间戳"
},
"count": {
"type": "integer",
"description": "互动次数"
},
"giftCount": {
"type": "integer",
"description": "礼物数量"
},
"customId": {
"type": "integer",
"description": "自定义标识"
},
"lastCharged": {
"type": "integer",
"description": "最近充能时间"
},
"bAvailableCnt": {
"type": "integer",
"description": "可用次数"
},
"bTodayVotedCnt": {
"type": "integer",
"description": "今日已点赞次数"
},
"nick": {
"type": "string",
"description": "昵称"
},
"gender": {
"type": "integer",
"description": "性别"
},
"age": {
"type": "integer",
"description": "年龄"
},
"isFriend": {
"type": "boolean",
"description": "是否为好友"
},
"isvip": {
"type": "boolean",
"description": "是否为会员"
},
"isSvip": {
"type": "boolean",
"description": "是否为超级会员"
}
},
"required": [
"uid",
"uin",
"src",
"latestTime",
"count",
"giftCount",
"customId",
"lastCharged",
"bAvailableCnt",
"bTodayVotedCnt",
"nick",
"gender",
"age",
"isFriend",
"isvip",
"isSvip"
]
}
}
}
}