From c80d0e5f9f0a02c33193e7aefeb0444bc3b5ecd6 Mon Sep 17 00:00:00 2001 From: 7rikka Date: Mon, 20 Feb 2023 14:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=BC=AB=E7=94=BB=E8=A1=A5?= =?UTF-8?q?=E7=AD=BE=20(#617)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manga/ClockIn.md | 99 +++++++++++++++++++++++++++++++----------------- 1 file changed, 64 insertions(+), 35 deletions(-) diff --git a/manga/ClockIn.md b/manga/ClockIn.md index 2a130af..36681ed 100644 --- a/manga/ClockIn.md +++ b/manga/ClockIn.md @@ -8,23 +8,33 @@ **正文参数( application/x-www-form-urlencoded ):** -| 参数名 | 类型 | 内容 | 必要性 | 备注 | -| ---------- | ---- | ------------------------ | -------------- | ------------------------------------------------------------ | -| platform | str | 平台 | 必要 | android | +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +|----------|-----|----|-----|---------| +| platform | str | 平台 | 必要 | android | +| device | str | 平台 | 非必要 | h5 | + +**正文参数( application/json ):** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +|------|-----|------|-----|-------| +| type | num | | 非必要 | 补签时使用 | +| date | str | 补签日期 | 必要 | 补签时使用 | **json回复:** 根对象: -| 字段 | 类型 | 内容 | 备注 | -| ------- | ---- | -------- | ------------------------------------------------------------ | -| code | num / str | 返回值 | 0:成功
invalid_argument:今日已签到 | -| msg | str | 错误信息 | 成功:空
已签到:clockin clockin is duplicate | -| meta | obj | 错误信息 | 今日已签到时存在 | -| data | obj | | | +| 字段 | 类型 | 内容 | 备注 | +|------|-----------|------|--------------------------------------------| +| code | num / str | 返回值 | 0:成功
invalid_argument:今日已签到 | +| msg | str | 错误信息 | 成功:空
已签到:clockin clockin is duplicate | +| meta | obj | 错误信息 | 今日已签到时存在 | +| data | obj | | | **示例:** +普通签到: + ```bash curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn' \ -H 'Cookie: SESSDATA=xxx' \ @@ -35,7 +45,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
签到成功: - ```json { "code": 0, @@ -49,7 +58,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
今日已签到: - ```json { "code": "invalid_argument", @@ -62,6 +70,28 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
+补签: + +```bash +curl -L 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn?platform=android' \ +-H 'Cookie: SESSDATA=xxx' \ +-H 'content-type: application/json;charset=UTF-8' \ +-d '{"type":0,"date":"2023-02-15"}' +``` + +
+补签成功: + +```json +{ + "code": 0, + "msg": "", + "data": {} +} +``` + +
+ # 查询签到状态 > https://manga.bilibili.com/twirp/activity.v1.Activity/GetClockInInfo @@ -74,35 +104,35 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn' 根对象: -| 字段 | 类型 | 内容 | 备注 | -| ------- | ---- | -------- | ------------------------------------------------------------ | -| code | num | 返回值 | 0:成功 | -| msg | str | 错误信息 | 空 | -| data | obj | 信息本体 | | +| 字段 | 类型 | 内容 | 备注 | +|------|-----|------|------| +| code | num | 返回值 | 0:成功 | +| msg | str | 错误信息 | 空 | +| data | obj | 信息本体 | | `data` 对象: -| 字段 | 类型 | 内容 | 备注 | -| ------- | ---- | -------- | ------------------------------------------------------------ | -| day_count | num | 连续签到天数 | | -| status | num | 今日是否已签到 | 0:未签到
1:已签到 | -| credit_icon | str | | | -| sign_before_icon | str | | | -| sign_today_icon | str | | | -| breathe_icon | str | | | -| new_credit_x_icon | str | | | -| coupon_pic | str | | | -| points | array | 一次签到周期中每次签到可获得点数 | | -| point_infos | array | | | +| 字段 | 类型 | 内容 | 备注 | +|-------------------|-------|------------------|------------------| +| day_count | num | 连续签到天数 | | +| status | num | 今日是否已签到 | 0:未签到
1:已签到 | +| credit_icon | str | | | +| sign_before_icon | str | | | +| sign_today_icon | str | | | +| breathe_icon | str | | | +| new_credit_x_icon | str | | | +| coupon_pic | str | | | +| points | array | 一次签到周期中每次签到可获得点数 | | +| point_infos | array | | | `point_infos`数组中的对象: -| 字段 | 类型 | 内容 | 备注 | -| ------- | ---- | -------- | ------------------------------------------------------------ | -| point | num | 签到可获取积分 | | -| origin_point | num | | | -| is_activity | bool | | | -| title | str | 签到奖励描述 | | +| 字段 | 类型 | 内容 | 备注 | +|--------------|------|---------|----| +| point | num | 签到可获取积分 | | +| origin_point | num | | | +| is_activity | bool | | | +| title | str | 签到奖励描述 | | **示例:** @@ -114,7 +144,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/GetClockI
成功: - ```json { "code": 0,