This commit is contained in:
aozhiwei 2023-08-26 08:18:40 +08:00
parent dda18828aa
commit c692f935e9

View File

@ -102,10 +102,12 @@ class StackingController extends BaseAuthedController {
$rows = Stacking::all(myself()->_getAddress()); $rows = Stacking::all(myself()->_getAddress());
foreach ($rows as $row) { foreach ($rows as $row) {
if ($row['status'] == Stacking::STAKING_STATUS) { if ($row['status'] == Stacking::STAKING_STATUS) {
if ($this->isTypeNft($type, $row)) {
array_push($items, Stacking::toDto($info)); array_push($items, Stacking::toDto($info));
++$stackedQuant; ++$stackedQuant;
} }
} }
}
myself()->_rspData(array( myself()->_rspData(array(
'type' => $type, 'type' => $type,
'stacked_quant' => $stackedQuant, 'stacked_quant' => $stackedQuant,
@ -129,4 +131,26 @@ class StackingController extends BaseAuthedController {
)); ));
} }
private function isTypeNft($type, $dbInfo)
{
switch ($type) {
case self::PLANET_TYPE:
{
}
break;
case self::BADGE_TYPE:
{
}
break;
case self::CEC_TYPE:
{
}
break;
}
return false;
}
} }