添加漫画补签 (#617)
This commit is contained in:
@@ -8,23 +8,33 @@
|
|||||||
|
|
||||||
**正文参数( application/x-www-form-urlencoded ):**
|
**正文参数( application/x-www-form-urlencoded ):**
|
||||||
|
|
||||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||||
| ---------- | ---- | ------------------------ | -------------- | ------------------------------------------------------------ |
|
|----------|-----|----|-----|---------|
|
||||||
| platform | str | 平台 | 必要 | android |
|
| platform | str | 平台 | 必要 | android |
|
||||||
|
| device | str | 平台 | 非必要 | h5 |
|
||||||
|
|
||||||
|
**正文参数( application/json ):**
|
||||||
|
|
||||||
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||||
|
|------|-----|------|-----|-------|
|
||||||
|
| type | num | | 非必要 | 补签时使用 |
|
||||||
|
| date | str | 补签日期 | 必要 | 补签时使用 |
|
||||||
|
|
||||||
**json回复:**
|
**json回复:**
|
||||||
|
|
||||||
根对象:
|
根对象:
|
||||||
|
|
||||||
| 字段 | 类型 | 内容 | 备注 |
|
| 字段 | 类型 | 内容 | 备注 |
|
||||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
|------|-----------|------|--------------------------------------------|
|
||||||
| code | num / str | 返回值 | 0:成功<br />invalid_argument:今日已签到 |
|
| code | num / str | 返回值 | 0:成功<br />invalid_argument:今日已签到 |
|
||||||
| msg | str | 错误信息 | 成功:空<br />已签到:clockin clockin is duplicate |
|
| msg | str | 错误信息 | 成功:空<br />已签到:clockin clockin is duplicate |
|
||||||
| meta | obj | 错误信息 | 今日已签到时存在 |
|
| meta | obj | 错误信息 | 今日已签到时存在 |
|
||||||
| data | obj | | |
|
| data | obj | | |
|
||||||
|
|
||||||
**示例:**
|
**示例:**
|
||||||
|
|
||||||
|
普通签到:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn' \
|
curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn' \
|
||||||
-H 'Cookie: SESSDATA=xxx' \
|
-H 'Cookie: SESSDATA=xxx' \
|
||||||
@@ -35,7 +45,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
|
|||||||
<details>
|
<details>
|
||||||
<summary>签到成功:</summary>
|
<summary>签到成功:</summary>
|
||||||
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"code": 0,
|
"code": 0,
|
||||||
@@ -49,7 +58,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
|
|||||||
<details>
|
<details>
|
||||||
<summary>今日已签到:</summary>
|
<summary>今日已签到:</summary>
|
||||||
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"code": "invalid_argument",
|
"code": "invalid_argument",
|
||||||
@@ -62,6 +70,28 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn'
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
补签:
|
||||||
|
|
||||||
|
```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"}'
|
||||||
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>补签成功:</summary>
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": 0,
|
||||||
|
"msg": "",
|
||||||
|
"data": {}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
# 查询签到状态
|
# 查询签到状态
|
||||||
|
|
||||||
> https://manga.bilibili.com/twirp/activity.v1.Activity/GetClockInInfo
|
> 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:成功 |
|
| code | num | 返回值 | 0:成功 |
|
||||||
| msg | str | 错误信息 | 空 |
|
| msg | str | 错误信息 | 空 |
|
||||||
| data | obj | 信息本体 | |
|
| data | obj | 信息本体 | |
|
||||||
|
|
||||||
`data` 对象:
|
`data` 对象:
|
||||||
|
|
||||||
| 字段 | 类型 | 内容 | 备注 |
|
| 字段 | 类型 | 内容 | 备注 |
|
||||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
|-------------------|-------|------------------|------------------|
|
||||||
| day_count | num | 连续签到天数 | |
|
| day_count | num | 连续签到天数 | |
|
||||||
| status | num | 今日是否已签到 | 0:未签到<br />1:已签到 |
|
| status | num | 今日是否已签到 | 0:未签到<br />1:已签到 |
|
||||||
| credit_icon | str | | |
|
| credit_icon | str | | |
|
||||||
| sign_before_icon | str | | |
|
| sign_before_icon | str | | |
|
||||||
| sign_today_icon | str | | |
|
| sign_today_icon | str | | |
|
||||||
| breathe_icon | str | | |
|
| breathe_icon | str | | |
|
||||||
| new_credit_x_icon | str | | |
|
| new_credit_x_icon | str | | |
|
||||||
| coupon_pic | str | | |
|
| coupon_pic | str | | |
|
||||||
| points | array | 一次签到周期中每次签到可获得点数 | |
|
| points | array | 一次签到周期中每次签到可获得点数 | |
|
||||||
| point_infos | array | | |
|
| point_infos | array | | |
|
||||||
|
|
||||||
`point_infos`数组中的对象:
|
`point_infos`数组中的对象:
|
||||||
|
|
||||||
| 字段 | 类型 | 内容 | 备注 |
|
| 字段 | 类型 | 内容 | 备注 |
|
||||||
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
|--------------|------|---------|----|
|
||||||
| point | num | 签到可获取积分 | |
|
| point | num | 签到可获取积分 | |
|
||||||
| origin_point | num | | |
|
| origin_point | num | | |
|
||||||
| is_activity | bool | | |
|
| is_activity | bool | | |
|
||||||
| title | str | 签到奖励描述 | |
|
| title | str | 签到奖励描述 | |
|
||||||
|
|
||||||
**示例:**
|
**示例:**
|
||||||
|
|
||||||
@@ -114,7 +144,6 @@ curl -L -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/GetClockI
|
|||||||
<details>
|
<details>
|
||||||
<summary>成功:</summary>
|
<summary>成功:</summary>
|
||||||
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"code": 0,
|
"code": 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user