This commit is contained in:
aozhiwei 2024-06-22 18:12:43 +08:00
parent 1d2f227198
commit 38b2c64ef7

View File

@ -153,10 +153,9 @@ class OutAppNftController extends BaseController {
} }
$heroMeta = \mt\Hero::get($heroDb['hero_id']); $heroMeta = \mt\Hero::get($heroDb['hero_id']);
$NftMeta = \mt\NftDesc::getByItemId($heroDb['hero_id']); $NftMeta = \mt\NftDesc::getByItemId($heroDb['hero_id']);
//https://www.cebg.games/res/nfts/30100.png
$info['name'] = $heroMeta['name']; $info['name'] = $heroMeta['name'];
$info['description'] = $NftMeta['desc']; $info['description'] = $NftMeta['desc'];
$info['image'] = "https://www.cebg.games/res/nfts/".$heroDb['hero_id'].".png"; $info['image'] = "https://res2.cebggame.com/nft/meta/".$heroDb['hero_id'].'_'.$heroDb['quality'].".gif";
array_push($info['attributes'],array( array_push($info['attributes'],array(
"trait_type" => "level", "trait_type" => "level",
"value" => intval($heroDb['hero_lv']), "value" => intval($heroDb['hero_lv']),
@ -167,10 +166,9 @@ class OutAppNftController extends BaseController {
case Nft::GOLD_BULLION_TYPE: case Nft::GOLD_BULLION_TYPE:
{ {
$NftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']); $NftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']);
//https://www.cebg.games/res/nfts/30100.png
//$info['name'] = $heroMeta['name']; //$info['name'] = $heroMeta['name'];
$info['description'] = $NftMeta['desc']; $info['description'] = $NftMeta['desc'];
$info['image'] = "https://www.cebg.games/res/nfts/".$nftDb['item_id'].".png"; $info['image'] = "https://res2.cebggame.com/nft/meta/".$nftDb['item_id'].".png";
} }
break; break;
} }