1
This commit is contained in:
parent
c65a2f2414
commit
48e6faa44c
@ -265,11 +265,31 @@ class OutAppNftController extends BaseController {
|
|||||||
$info['item_id'] = $itemMeta['id'];
|
$info['item_id'] = $itemMeta['id'];
|
||||||
$info['type'] = $nftDb['token_type'];
|
$info['type'] = $nftDb['token_type'];
|
||||||
$info['image'] = 'https://www.cebg.games/res/avatars/' . $itemMeta['id'] . '.png';
|
$info['image'] = 'https://www.cebg.games/res/avatars/' . $itemMeta['id'] . '.png';
|
||||||
$info['detail']['gold_coins'] = 10000;
|
$info['detail']['gold_coins'] = $this->getGoldBullionGoldNum($nftDb['item_id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function getGoldBullionGoldNum($itemId)
|
||||||
|
{
|
||||||
|
switch ($itemId) {
|
||||||
|
case V_ITEM_GOLD_BULLION_1W:
|
||||||
|
{
|
||||||
|
return 10000;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case V_ITEM_GOLD_BULLION_10W:
|
||||||
|
{
|
||||||
|
return 10000 * 10;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user