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

View File

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