This commit is contained in:
aozhiwei 2023-08-28 16:40:56 +08:00
parent 07396c0750
commit 43eada472e

View File

@ -113,6 +113,8 @@ class StakingController extends BaseAuthedController {
}
public function stakingPreview()
{
$checkList = array();
{
$tokenIdList = getReqVal('token_id_list', '');
$contractAddressList = getReqVal('contract_address_list', '');
@ -125,6 +127,14 @@ class StakingController extends BaseAuthedController {
myself()->_rspErr(1, 'paramater error');
return;
}
for ($i = 0; $i < count($tokenIdList); ++$i) {
$checkList[$tokenIdList[$i]] = array(
'token_id' => $tokenIdList[$i],
'contract_address' => $contractAddressList[$i],
'net_id' => $netId
);
}
}
$confirmedNfts = array();
{
$nftList = Nft::getNftList(myself()-_getAddress());