1
This commit is contained in:
parent
7e5761b13d
commit
0315cf1019
@ -177,20 +177,22 @@ class OutAppNftController extends BaseController {
|
||||
$info['description'] = $NftMeta['desc'];
|
||||
$info['image'] = "https://res2.counterfire.games/nft/meta/".
|
||||
$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(
|
||||
"trait_type" => "quality",
|
||||
"trait_type" => "Tier",
|
||||
"value" => intval($this->getRealHeroQuality($heroDb)),
|
||||
));
|
||||
array_push($info['attributes'],array(
|
||||
"trait_type" => "max_mining_days",
|
||||
"trait_type" => "Active Days",
|
||||
"value" => $heroAtteMeta['validTime'],
|
||||
));
|
||||
array_push($info['attributes'],array(
|
||||
"trait_type" => "wealth",
|
||||
"trait_type" => "Wealth Value",
|
||||
"value" => floor($wealth * (1+$wealth_rate)),
|
||||
));
|
||||
array_push($info['attributes'],array(
|
||||
"trait_type" => "lucky",
|
||||
"trait_type" => "Luck Value",
|
||||
"value" => floor($lucky * (1+$lucky_rate)),
|
||||
));
|
||||
if ($this->isCloseBox()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user