From bb28f444e129bb98c10d33c516b4ee454a8f6374 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=8E=A2=E7=B4=A2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=AD=E5=B7=B2=E9=A2=86=E5=8F=96=E6=94=B9=E6=88=909?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/uaw.md | 22 ++++++++++++++++++---- src/controllers/game.controller.ts | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/docs/uaw.md b/docs/uaw.md index 58ea577..6fdcc72 100644 --- a/docs/uaw.md +++ b/docs/uaw.md @@ -27,6 +27,7 @@ #### 20240408 1. 增加宝箱助力状态查询(26), 用于助力上链前查询是否符合条件 1. 用户状态接口(10)增加返回当日可助力次数 +1. 开启宝箱(19), 宝箱开启记录(20)增加返回额外的物品 ### 1. 钱包预登录 @@ -583,6 +584,14 @@ body: ```js { score: 100, // 获得的积分 + items: [ + { + id: "001", // 物品id + type: 1, // 1白单, 2: nft + name: "", // 物品名 + amount: 1 // 数量 + } + ] } ``` @@ -602,7 +611,15 @@ body: chest: '123123123', level: 1, // 箱子品级 score: 100, // 获得的积分 - time: 111 // 开启时间 + time: 111, // 开启时间 + items: [ + { + id: "001", // 物品id + type: 1, // 1白单, 2: nft + name: "", // 物品名 + amount: 1 // 数量 + } + ] }] ``` @@ -708,7 +725,6 @@ body: } ``` -### ### 26.\* 宝箱助力状态查询 @@ -740,5 +756,3 @@ body: enhanced: 0, // 用户是否已经为当前宝箱助力 } ``` - -### \ No newline at end of file diff --git a/src/controllers/game.controller.ts b/src/controllers/game.controller.ts index 24d837b..02fd13e 100644 --- a/src/controllers/game.controller.ts +++ b/src/controllers/game.controller.ts @@ -207,7 +207,7 @@ class GameController extends BaseController { } if (record.lastSignDay === dateTag) { // 检查是否已领取 - todayStat = 2 + todayStat = 9 } const scoreBonus = seqSignScore(checkRecord?.count || 0) const ticketRecords = await TicketRecord.find({