From 15217abd30d13bf409c6b8c7f8021f9e28e3723f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 23 Jun 2022 16:08:04 +0800 Subject: [PATCH] 1 --- webapp/models/Phase3Box.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/models/Phase3Box.php b/webapp/models/Phase3Box.php index a07f9bff..1af6accd 100644 --- a/webapp/models/Phase3Box.php +++ b/webapp/models/Phase3Box.php @@ -108,31 +108,44 @@ class Phase3Box extends BaseModel { case 0: { //特奖 创世 NFT英雄 3% 6 + $rnd = rand(0, count($heros) - 1); + $itemId = $heros[$rnd]; + $tokenType = Nft::HERO_TYPE; + $tags = Nft::GENESIS_TAG; } break; case 1: { //头奖 枪械 NFT 5% 10 + $rnd = rand(0, count($guns) - 1); + $itemId = $guns[$rnd]; + $tokenType = Nft::EQUIP_TYPE; } break; case 2: { //一等奖 芯片 NFT 7% 13 + $rnd = rand(0, count($chips) - 1); + $itemId = $chips[$rnd]; + $tokenType = Nft::CHIP_TYPE; } break; case 3: { //二等奖 25 CEC 20% 38 + $cec = 25; } break; case 4: { //三等奖 20 CEC 30% 57 + $cec = 20; } break; default: { //安慰奖 15 CEC 35% 67 + $cec = 15; } break; }