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

View File

@ -114,16 +114,26 @@ class StakingController extends BaseAuthedController {
public function stakingPreview()
{
$tokenIdList = getReqVal('token_id_list', '');
$contractAddressList = getReqVal('contract_address_list', '');
$netId = getReqVal('net_id', '');
if (count($tokenIdList) <= 0) {
myself()->_rspErr(1, 'paramater error');
return;
}
if (count($tokenIdList) != count($contractAddressList)) {
myself()->_rspErr(1, 'paramater error');
return;
$checkList = array();
{
$tokenIdList = getReqVal('token_id_list', '');
$contractAddressList = getReqVal('contract_address_list', '');
$netId = getReqVal('net_id', '');
if (count($tokenIdList) <= 0) {
myself()->_rspErr(1, 'paramater error');
return;
}
if (count($tokenIdList) != count($contractAddressList)) {
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();
{