1
This commit is contained in:
parent
ae7161dba0
commit
ab4f0588c0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user