This commit is contained in:
aozhiwei 2024-06-26 17:43:17 +08:00
parent dd00406fcd
commit 5d72282d74
2 changed files with 8 additions and 4 deletions

View File

@ -129,6 +129,10 @@ class BlockChainController extends BaseAuthedController {
myself()->_rspErr(1, 'hero not found');
return;
}
if (!$heroDb['seal_type']) {
myself()->_rspErr(1, 'hero no seal');
return;
}
$isMint = true;
$tokenId = $heroDb['token_id'];
if ($heroDb['token_id'] && $heroDb['activate']) {

View File

@ -153,7 +153,7 @@ class OutAppNftController extends BaseController {
$NftMeta = \mt\NftDesc::getByItemId($heroDb['hero_id']);
$info['name'] = $heroMeta['name'];
$info['description'] = $NftMeta['desc'];
$info['image'] = "https://res2.cebggame.com/nft/meta/".$heroDb['hero_id'].'_'.$heroDb['quality'].".gif";
$info['image'] = "https://res2.counterfire.games/nft/meta/".$heroDb['hero_id'].'_'.$heroDb['quality'].".gif";
array_push($info['attributes'],array(
"trait_type" => "level",
"value" => intval($heroDb['hero_lv']),
@ -166,7 +166,7 @@ class OutAppNftController extends BaseController {
$NftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']);
//$info['name'] = $heroMeta['name'];
$info['description'] = $NftMeta['desc'];
$info['image'] = "https://res2.cebggame.com/nft/meta/".$nftDb['item_id'].".png";
$info['image'] = "https://res2.counterfire.games/nft/meta/".$nftDb['item_id'].".png";
}
break;
}
@ -268,7 +268,7 @@ class OutAppNftController extends BaseController {
$info['name'] = $heroMeta['name'];
$info['item_id'] = $heroMeta['id'];
$info['type'] = $nftDb['token_type'];
$info['image'] = 'https://res2.cebggame.com/nft/meta/' . $heroMeta['id'] . '_' . $heroDb['quality'] . '.gif';
$info['image'] = 'https://res2.counterfire.games/nft/meta/' . $heroMeta['id'] . '_' . $heroDb['quality'] . '.gif';
$info['detail']['quality'] = $heroDb['quality'];
$info['detail']['max_mining_days'] = $heroAtteMeta['validTime'];
$info['detail']['wealth'] = floor($wealth * (1+$wealth_rate));
@ -290,7 +290,7 @@ class OutAppNftController extends BaseController {
$info['name'] = $itemMeta['name'];
$info['item_id'] = $itemMeta['id'];
$info['type'] = $nftDb['token_type'];
$info['image'] = 'https://res2.cebggame.com/nft/meta/' . $itemMeta['id'] . '.png';
$info['image'] = 'https://res2.counterfire.games/nft/meta/' . $itemMeta['id'] . '.png';
$info['detail']['gold_coins'] = $this->getGoldBullionGoldNum($nftDb['item_id']);
}
}