From ec390e83210a404df8b78894596a529a680ba26c Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Sat, 13 Apr 2024 12:09:50 +0800 Subject: [PATCH] =?UTF-8?q?bug=20fix:=20=E7=94=9F=E6=88=90=E7=AE=B1?= =?UTF-8?q?=E5=AD=90=E9=9A=8F=E6=9C=BA=E6=95=B0=E6=8D=AE=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/uaw.md | 14 +++++++++++++- src/services/game.svr.ts | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/uaw.md b/docs/uaw.md index c0d7ddb..d55dc3d 100644 --- a/docs/uaw.md +++ b/docs/uaw.md @@ -49,7 +49,8 @@ #### 20240413 1. 用户状态(10) 增加返回是否获得白名单字段 -2. 增加 +2. 增加接口: 合作伙伴NFT列表 +3. 增加接口: 领取NFT holder奖励 ### 1. 钱包预登录 @@ -828,6 +829,7 @@ body: "contract": "0x20577896ea6113ed8c94b2f08f3893bdc08eba22", //合约地址 "collection": "l3e7 worlds", // NFT的collection名称 "remarks": "600 collection", // 描述 + "img": "111", // nft相关图片 "chain": 1, // 链id "status": 1, // 已登录状态下, 1表示已领取 }] @@ -841,6 +843,16 @@ body: - 方法:POST - 头部: - Authorization: Bearer JWT_token + + +body: + +```js +{ + "contract": "NFT合约地址" +} + +``` #### Response diff --git a/src/services/game.svr.ts b/src/services/game.svr.ts index 1a16308..a81d244 100644 --- a/src/services/game.svr.ts +++ b/src/services/game.svr.ts @@ -15,7 +15,7 @@ chestCfg.chests.forEach((cfg: any) => { const generateBounsCfg = (cfg: any) => { let randoms = [] - for (let i = 0; i < cfg.bounsCount; i++) { + for (let i = 0; i < cfg.maxBounsCount; i++) { randoms.push(Math.random()) } let total = randoms.reduce((a: number, b: number) => a + b)