1
This commit is contained in:
parent
43eada472e
commit
ae0789a253
@ -128,6 +128,10 @@ class StakingController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for ($i = 0; $i < count($tokenIdList); ++$i) {
|
for ($i = 0; $i < count($tokenIdList); ++$i) {
|
||||||
|
if (array_key_exists($tokenIdList[$i], $checkList)) {
|
||||||
|
myself()->_rspErr(1, 'paramater error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$checkList[$tokenIdList[$i]] = array(
|
$checkList[$tokenIdList[$i]] = array(
|
||||||
'token_id' => $tokenIdList[$i],
|
'token_id' => $tokenIdList[$i],
|
||||||
'contract_address' => $contractAddressList[$i],
|
'contract_address' => $contractAddressList[$i],
|
||||||
@ -139,11 +143,13 @@ class StakingController extends BaseAuthedController {
|
|||||||
{
|
{
|
||||||
$nftList = Nft::getNftList(myself()-_getAddress());
|
$nftList = Nft::getNftList(myself()-_getAddress());
|
||||||
foreach ($nftList as $nft) {
|
foreach ($nftList as $nft) {
|
||||||
if (in_array(
|
if (array_key_exists($nft['token_id'], $checkList)) {
|
||||||
$nft['token_id'],
|
$c = $checkList[$nft['token_id']];
|
||||||
$tokenIdList
|
if ($c['contract_address'] == $nft['contract_address'] &&
|
||||||
)) {
|
$c['net_id'] == $nft['nft_id']) {
|
||||||
array_push($confirmedNfts, $nft);
|
array_push($confirmedNfts,
|
||||||
|
$nft);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user