1
This commit is contained in:
parent
3e56448203
commit
f0a6b0a839
@ -9,6 +9,7 @@ require_once('mt/Hero.php');
|
|||||||
use models\Nft;
|
use models\Nft;
|
||||||
use models\User;
|
use models\User;
|
||||||
use models\Hero;
|
use models\Hero;
|
||||||
|
|
||||||
class OutAppNftController extends BaseController {
|
class OutAppNftController extends BaseController {
|
||||||
|
|
||||||
public function getNftList(){
|
public function getNftList(){
|
||||||
@ -236,9 +237,9 @@ class OutAppNftController extends BaseController {
|
|||||||
if ($heroDb) {
|
if ($heroDb) {
|
||||||
$heroMeta = \mt\Hero::get($heroDb['hero_id']);
|
$heroMeta = \mt\Hero::get($heroDb['hero_id']);
|
||||||
if ($heroMeta) {
|
if ($heroMeta) {
|
||||||
$info['meta_url'] = '';
|
$info['meta_url'] = NFT_META_URL . '/hero/meta/' . $netId . '/' . $tokenId;
|
||||||
$info['name'] = $heroMeta['name'];
|
$info['name'] = $heroMeta['name'];
|
||||||
$info['item_id'] = $heroMeta['hero_id'];
|
$info['item_id'] = $heroMeta['id'];
|
||||||
$info['type'] = $nftDb['token_type'];
|
$info['type'] = $nftDb['token_type'];
|
||||||
$info['image'] = 'https://www.cebg.games/res/avatars/' . $heroMeta['id'] . '.png';
|
$info['image'] = 'https://www.cebg.games/res/avatars/' . $heroMeta['id'] . '.png';
|
||||||
$info['detail']['quality'] = $heroDb['quality'];
|
$info['detail']['quality'] = $heroDb['quality'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user