From 798f78c82f7a5420b29c5e488dd806e21d8a7b84 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 5 Sep 2023 14:27:51 +0800 Subject: [PATCH] 1 --- webapp/controller/StakingController.class.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index 1c2b50cc..8da02d62 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -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;