Merge branch 'ty' into hjb

This commit is contained in:
aozhiwei 2024-07-26 15:17:40 +08:00
commit 42a498717d

View File

@ -367,9 +367,26 @@ class OutAppNftController extends BaseController {
$info['meta_url'] = 'https://nftmint.counterfire.games/nft/202403/' . $nftDb['token_id']; $info['meta_url'] = 'https://nftmint.counterfire.games/nft/202403/' . $nftDb['token_id'];
$info['name'] = 'Founders Tag #1'; $info['name'] = 'Founders Tag #1';
$info['item_id'] = 0; $info['item_id'] = 0;
$info['quality'] = 1; $info['quality'] = $nftDb['quality'];
$info['type'] = $nftDb['token_type']; $info['type'] = $nftDb['token_type'];
$info['image'] = 'https://gateway.pinata.cloud/ipfs/QmNcUxWcNF85mx6aQp7PVNWJ89d9PqMpaHUT9vQTSTatGq'; $info['image'] = 'https://gateway.pinata.cloud/ipfs/QmNcUxWcNF85mx6aQp7PVNWJ89d9PqMpaHUT9vQTSTatGq';
switch ($nftDb['quality']) {
case 1:
{
$info['image'] = 'https://gateway.pinata.cloud/ipfs/QmNcUxWcNF85mx6aQp7PVNWJ89d9PqMpaHUT9vQTSTatGq';
}
break;
case 2:
{
$info['image'] = 'https://gateway.pinata.cloud/ipfs/QmctTzuks35UTTEQS2rx7fbq8gfQZvHLQL3sjSEZck59es';
}
break;
case 3:
{
$info['image'] = 'https://gateway.pinata.cloud/ipfs/QmfCL6uncbrYnwgZiqcgYcBgL6L2WtNC6m3UTooMLHKxyk';
}
break;
}
} }
break; break;
} }