1
This commit is contained in:
parent
0b7ca897b9
commit
a05c8ca8c7
@ -133,8 +133,8 @@ class OutAppNftController extends BaseController {
|
|||||||
|
|
||||||
public function nftMetaView()
|
public function nftMetaView()
|
||||||
{
|
{
|
||||||
$nftType = getReqVal('nft_type', '');
|
|
||||||
$netId = getReqVal('net_id', '');
|
$netId = getReqVal('net_id', '');
|
||||||
|
$tokenType = getReqVal('token_type', '');
|
||||||
$tokenId = getReqVal('token_id', '');
|
$tokenId = getReqVal('token_id', '');
|
||||||
$info = array(
|
$info = array(
|
||||||
"name" => "",
|
"name" => "",
|
||||||
@ -142,8 +142,8 @@ class OutAppNftController extends BaseController {
|
|||||||
"image" => "",
|
"image" => "",
|
||||||
"attributes" => array(),
|
"attributes" => array(),
|
||||||
);
|
);
|
||||||
switch ($nftType) {
|
switch ($tokenType) {
|
||||||
case 'hero':
|
case Nft::HERO_TYPE:
|
||||||
{
|
{
|
||||||
$heroDb = Hero::findByTokenId2($tokenId);
|
$heroDb = Hero::findByTokenId2($tokenId);
|
||||||
if (!$heroDb){
|
if (!$heroDb){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user