This commit is contained in:
aozhiwei 2024-07-03 16:44:04 +08:00
parent 7e5761b13d
commit 0315cf1019

View File

@ -177,20 +177,22 @@ class OutAppNftController extends BaseController {
$info['description'] = $NftMeta['desc']; $info['description'] = $NftMeta['desc'];
$info['image'] = "https://res2.counterfire.games/nft/meta/". $info['image'] = "https://res2.counterfire.games/nft/meta/".
$heroDb['hero_id'].'_'.$this->getRealHeroQuality($heroDb).".gif"; $heroDb['hero_id'].'_'.$this->getRealHeroQuality($heroDb).".gif";
$info['animation_url'] = "https://res.counterfire.games/nft/video/".
$heroDb['hero_id'].'_'.$this->getRealHeroQuality($heroDb).".mp4";
array_push($info['attributes'],array( array_push($info['attributes'],array(
"trait_type" => "quality", "trait_type" => "Tier",
"value" => intval($this->getRealHeroQuality($heroDb)), "value" => intval($this->getRealHeroQuality($heroDb)),
)); ));
array_push($info['attributes'],array( array_push($info['attributes'],array(
"trait_type" => "max_mining_days", "trait_type" => "Active Days",
"value" => $heroAtteMeta['validTime'], "value" => $heroAtteMeta['validTime'],
)); ));
array_push($info['attributes'],array( array_push($info['attributes'],array(
"trait_type" => "wealth", "trait_type" => "Wealth Value",
"value" => floor($wealth * (1+$wealth_rate)), "value" => floor($wealth * (1+$wealth_rate)),
)); ));
array_push($info['attributes'],array( array_push($info['attributes'],array(
"trait_type" => "lucky", "trait_type" => "Luck Value",
"value" => floor($lucky * (1+$lucky_rate)), "value" => floor($lucky * (1+$lucky_rate)),
)); ));
if ($this->isCloseBox()) { if ($this->isCloseBox()) {