This commit is contained in:
aozhiwei 2024-06-22 18:03:13 +08:00
parent c65a2f2414
commit 48e6faa44c

View File

@ -265,11 +265,31 @@ class OutAppNftController extends BaseController {
$info['item_id'] = $itemMeta['id'];
$info['type'] = $nftDb['token_type'];
$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;
}
}
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;
}
}
}
}