This commit is contained in:
aozhiwei 2023-08-28 17:12:07 +08:00
parent ae7161dba0
commit ab4f0588c0

View File

@ -157,6 +157,20 @@ class StakingController extends BaseAuthedController {
myself()->_rspErr(3, 'paramater error');
return;
}
$nftValue = 0;
$items = array();
foreach ($confirmedNfts as $nft) {
$stakingMeta = mt\Staking::get($nft['item_id']);
if (!$stakingMeta) {
myself()->_rspErr(4, 'config error');
return;
}
$nftValue += $stakingMeta['stake_value'];
}
myself()->_rspData(array(
'nft_value' => $nftValue,
'items' => $items
));
}
private function isTypeNft($type, $dbInfo)