更新文档

This commit is contained in:
zhl 2021-01-28 10:22:29 +08:00
parent 89c107a6e8
commit a4d44e2da7
2 changed files with 77 additions and 1 deletions

View File

@ -484,7 +484,83 @@
```
### 20. 签到列表
> 签到接口不需要手动调用
1. Method: POST
2. URI: /api/:accountid/sign/list
| 字段 | 说明 |
| -------- | -------------------------------------- |
| accountid | 帐号id |
3. Response: JSON
```js
"cfgs": [ //配置列表
{
"id": 6,
"title": "第7天",
"reward_type": 80013, // 物品id
"reward_count": 800, // 数量
"need_type": 1, // 获取奖励物品需要的条件
"need_count": 7, // 获取奖励物品需要的条件的数量
"reward_list": [ // 如果奖励物品是多个, 则读取该字段, 如果是单个, 则无此字段
{
"reward_type": 80013,
"reward_count": 2
},
{
"reward_type": 80012,
"reward_count": 800
}
],
"status": 0 // 领取状态 0: 未开始, 1: 可补签, 2: 可领取, 3: 已领取
}
],
"last": 1611751985, // 最后签到时间
"betweenDays": 1, // 最后签到时间与当前所隔天数
"doubleReward": 0, // 是否能双倍领取 0: 可以, 1: 当日已领取单倍, 2: 当日已领取双倍
"userData": { // 本轮用户领取记录
"0": 3
}
```
### 21. 签到领取物品
> 签到接口不需要手动调用
1. Method: POST
2. URI: /api/:accountid/sign/list
| 字段 | 说明 |
| -------- | -------------------------------------- |
| accountid | 帐号id |
> POST参数
| 字段 |说明 |
| -------- | -------------------------------------- |
|type |领取类型 1: 普通领取, 2: 双倍领取, 3: 补签 |
|id |签到列表中返回的id |
3. Response: JSON
```js
[ //物品列表
{
"id": 0, //道具id
"count": 0, //道具数量
},
]
```

View File

@ -207,7 +207,7 @@ interface String {
/**
* {0}{1}{2}{a} {b}obj对应key替换key的数据替换
*/
substitute?(...args: any): string;
substitute?(...args: any[]): string;
substitute?(args: any[]): string;
/**
* 0