This commit is contained in:
aozhiwei 2023-09-05 14:27:51 +08:00
parent 978ddb6502
commit 798f78c82f

View File

@ -282,18 +282,27 @@ class StakingController extends BaseAuthedController {
case self::PLANET_TYPE: case self::PLANET_TYPE:
{ {
if (in_array($dbInfo['token_type'], array( if (in_array($dbInfo['token_type'], array(
Nft::PLANET_TYPE
))) { ))) {
return true;
} }
} }
break; break;
case self::BADGE_TYPE: case self::BADGE_TYPE:
{ {
if (SERVER_ENV != _ONLINE) {
if (in_array($dbInfo['token_type'], array( if (in_array($dbInfo['token_type'], array(
Nft::HONOR1_TYPE Nft::HONOR1_TYPE
))) { ))) {
return true; return true;
} }
} else {
if (in_array($dbInfo['token_type'], array(
Nft::GENESIS_TYPE
))) {
return true;
}
}
} }
break; break;
case self::CEC_TYPE: case self::CEC_TYPE: