1
This commit is contained in:
parent
668fd3fff5
commit
4f8ea3ac90
@ -56,6 +56,7 @@ class NftInfo(object):
|
|||||||
['item_id', 0, 'item_id'],
|
['item_id', 0, 'item_id'],
|
||||||
['token_id', 0, 'token_id'],
|
['token_id', 0, 'token_id'],
|
||||||
['token_type', 0, 'token_type'],
|
['token_type', 0, 'token_type'],
|
||||||
|
['contract_address', 0, '合约地址'],
|
||||||
['createtime', 0, 'createtime'],
|
['createtime', 0, 'createtime'],
|
||||||
['!details', [], '详细'],
|
['!details', [], '详细'],
|
||||||
]
|
]
|
@ -21,6 +21,7 @@ class NftController extends BaseAuthedController
|
|||||||
"item_id" => $nft['item_id'],
|
"item_id" => $nft['item_id'],
|
||||||
"token_id" => $nft['token_id'],
|
"token_id" => $nft['token_id'],
|
||||||
"token_type" => $nft['token_type'],
|
"token_type" => $nft['token_type'],
|
||||||
|
"contract_address" => $nft['contract_address'],
|
||||||
"createtime" => $nft['createtime'],
|
"createtime" => $nft['createtime'],
|
||||||
"details" => array(),
|
"details" => array(),
|
||||||
);
|
);
|
||||||
|
@ -186,12 +186,12 @@ class Chip extends BaseModel
|
|||||||
'rand_attr'=> $rand_attr,
|
'rand_attr'=> $rand_attr,
|
||||||
);
|
);
|
||||||
$dto['chip_name'] = mt\Item::get($row['item_id'])?mt\Item::get($row['item_id'])['name']:'XXX';
|
$dto['chip_name'] = mt\Item::get($row['item_id'])?mt\Item::get($row['item_id'])['name']:'XXX';
|
||||||
$nft_address = '';
|
// $nft_address = '';
|
||||||
$contract = ContractConfig::find(ContractConfig::ERC721);
|
// $contract = ContractConfig::find(ContractConfig::ERC721);
|
||||||
if ($dto['token_id']){
|
// if ($dto['token_id']){
|
||||||
$nft_address = $contract ? $contract['chip'] : "";
|
// $nft_address = $contract ? $contract['chip'] : "";
|
||||||
}
|
// }
|
||||||
$dto['nft_address'] = $nft_address;
|
// $dto['nft_address'] = $nft_address;
|
||||||
$dto['tags'] = '';
|
$dto['tags'] = '';
|
||||||
return $dto;
|
return $dto;
|
||||||
}
|
}
|
||||||
|
@ -286,13 +286,13 @@ class Gun extends BaseModel {
|
|||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$nft_address = '';
|
// $nft_address = '';
|
||||||
$contract = ContractConfig::find(ContractConfig::ERC721);
|
// $contract = ContractConfig::find(ContractConfig::ERC721);
|
||||||
if ($row['token_id']){
|
// if ($row['token_id']){
|
||||||
$nft_address = $contract ? $contract['gun'] : "";
|
// $nft_address = $contract ? $contract['gun'] : "";
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
$dto['nft_address'] = $nft_address;
|
// $dto['nft_address'] = $nft_address;
|
||||||
return $dto;
|
return $dto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,12 +304,12 @@ class Hero extends BaseModel {
|
|||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$nft_address = '';
|
// $nft_address = '';
|
||||||
$contract = ContractConfig::find(ContractConfig::ERC721);
|
// $contract = ContractConfig::find(ContractConfig::ERC721);
|
||||||
if ($row['token_id']){
|
// if ($row['token_id']){
|
||||||
$nft_address = $contract ? $contract['hero'] : "";
|
// $nft_address = $contract ? $contract['hero'] : "";
|
||||||
}
|
// }
|
||||||
$dto['nft_address'] = $nft_address;
|
// $dto['nft_address'] = $nft_address;
|
||||||
return $dto;
|
return $dto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user