This commit is contained in:
aozhiwei 2024-06-13 13:59:05 +08:00
parent 3e56448203
commit f0a6b0a839

View File

@ -9,6 +9,7 @@ require_once('mt/Hero.php');
use models\Nft;
use models\User;
use models\Hero;
class OutAppNftController extends BaseController {
public function getNftList(){
@ -236,9 +237,9 @@ class OutAppNftController extends BaseController {
if ($heroDb) {
$heroMeta = \mt\Hero::get($heroDb['hero_id']);
if ($heroMeta) {
$info['meta_url'] = '';
$info['meta_url'] = NFT_META_URL . '/hero/meta/' . $netId . '/' . $tokenId;
$info['name'] = $heroMeta['name'];
$info['item_id'] = $heroMeta['hero_id'];
$info['item_id'] = $heroMeta['id'];
$info['type'] = $nftDb['token_type'];
$info['image'] = 'https://www.cebg.games/res/avatars/' . $heroMeta['id'] . '.png';
$info['detail']['quality'] = $heroDb['quality'];