敏感信息解密
https://member.bilibili.com/arcopen/fn/common/market_ticket_decrypt
开放能力 / 交易电商 / 用户票务信息 / 接口
票务实名信息解密接口,用于解密票务字段中的敏感信息
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| cipher_infos | List<CipherInfo> | 是 | 解密信息列表(1-50条记录) |
| auth_id | String | 是 | 业务标识(默认为票id) |
| cipher_text | String | 是 | 加密内容体(Base64编码的AES加密字符串) |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| code | Integer | 否 | 状态码,0表示成功 |
| message | String | 否 | 响应消息 |
| data | TicketDecryptResult | 否 | 解密结果数据 |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "108", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "108", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "108", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/common/market_ticket_decrypt' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-bili-timestamp: 1712473117' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: afdf0ddc6dd8f5af9c7f25cf3115a03142e67df99e15f909a17c11e4c82ad4f9' \
--header 'x-bili-signature-nonce: 1712473117993237000' \
--header 'x-bili-accesskeyid: 8ca079bc20ce433d' \
--header 'x-bili-content-md5: 795a2d7e13f989cee460801379fe543c' \
--header 'access_token: 454b8fb09ddf1e7ba405f158160f61a1' \
--header 'Connection: keep-alive' \
--header 'Host: member.bilibili.com' \
--data-raw '{
"cipher_infos": [
{
"auth_id": "10001",
"cipher_text": "U2FsdGVkX1+8xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="
},
{
"auth_id": "10002",
"cipher_text": "U2FsdGVkX1+9yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy=="
},
{
"auth_id": "10003",
"cipher_text": "U2FsdGVkX1+7zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz=="
}
]
}'原始文档:108_敏感信息解密.md(5315 字节)。用 bili_docs_get { "ref": "108" } 读全文,或用 bili_api_spec { "ref": "108" } 取结构化规格。