1
This commit is contained in:
parent
dda18828aa
commit
c692f935e9
@ -102,8 +102,10 @@ 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) {
|
||||||
array_push($items, Stacking::toDto($info));
|
if ($this->isTypeNft($type, $row)) {
|
||||||
++$stackedQuant;
|
array_push($items, Stacking::toDto($info));
|
||||||
|
++$stackedQuant;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myself()->_rspData(array(
|
myself()->_rspData(array(
|
||||||
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user