feat(login_notice.md): improve docs

This commit is contained in:
晨叶梦春 2025-05-02 09:35:55 +08:00 committed by GitHub
parent 41ce374ea1
commit a2161708ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@
| 参数名 | 类型 | 内容 | 必要性 | 备注 | | 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | ---------- | ------ | ------------------------------------------------------------ | | ------ | ---- | ---------- | ------ | ------------------------------------------------------------ |
| mid | num | 用户mid | 必要 | | | mid | num | 用户mid | 必要 | 必须为自己的mid |
| buvid | str | 设备虚拟id | 非必要 | web端为操作登录接口时Cookie中的`buvid3`<br />若登录设备无`buvid`则留空 | | buvid | str | 设备虚拟id | 非必要 | web端为操作登录接口时Cookie中的`buvid3`<br />若登录设备无`buvid`则留空 |
**json回复** **json回复**
@ -21,7 +21,7 @@
| 字段 | 类型 | 内容 | 备注 | | 字段 | 类型 | 内容 | 备注 |
| ------- | ---- | -------- | --------------------------- | | ------- | ---- | -------- | --------------------------- |
| code | num | 返回值 | 0成功<br />-101账号未登录<br />-400请求错误 | | code | num | 返回值 | 0成功<br />-101账号未登录<br />-400请求错误<br />-403访问权限不足 |
| message | str | 错误信息 | 默认为0 | | message | str | 错误信息 | 默认为0 |
| ttl | num | 1 | | | ttl | num | 1 | |
| data | obj | 信息本体 | | | data | obj | 信息本体 | |
@ -114,7 +114,7 @@ curl -G 'https://api.bilibili.com/x/safecenter/login_notice' \
| 字段 | 类型 | 内容 | 备注 | | 字段 | 类型 | 内容 | 备注 |
| -------- | ---- | -------------- | ---- | | -------- | ---- | -------------- | ---- |
| ip | str | 登录 IP | 末两位以 `*` 打码 | | ip | str | 登录 IP | IPv4末 2 位以 `*` 打码<br />IPv6末 5 位以 `*` 打码 |
| time | num | 登录时间 | UNIX 秒级时间戳 | | time | num | 登录时间 | UNIX 秒级时间戳 |
| time_at | str | 登录时间 | 格式为 `yyyy-MM-dd HH:mm:ss` | | time_at | str | 登录时间 | 格式为 `yyyy-MM-dd HH:mm:ss` |
| status | bool | 是否登录成功? | | | status | bool | 是否登录成功? | |
@ -139,8 +139,16 @@ curl -G "https://api.bilibili.com/x/member/web/login/log" \
"message": "0", "message": "0",
"ttl": 1, "ttl": 1,
"data": { "data": {
"count": 14, "count": 15,
"list": [ "list": [
{
"ip": "240e:*:*:*:*:*:*:*",
"time": 1746038055,
"time_at": "2025-05-01 02:34:15",
"status": true,
"type": 0,
"geo": "中国广西梧州电信"
},
{ {
"ip": "108.181.*.*", "ip": "108.181.*.*",
"time": 1722036741, "time": 1722036741,