From aa489c11e79ebb8863177dbc95f3745dc0bd03e1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 27 Aug 2024 14:37:57 +0800 Subject: [PATCH] 1 --- webapp/controller/BlockChainController.class.php | 5 +++++ webapp/controller/OutAppMintController.class.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index 214e1329..df953202 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -67,6 +67,11 @@ class BlockChainController extends BaseAuthedController { myself()->_rspErr(1, 'hero no seal'); return; } + if ($heroDb['quality'] <= 1) { + myself()->_rspErr(1, 'hero is N quality'); + return; + } + $isMint = true; $tokenId = $heroDb['token_id']; if ($heroDb['token_id'] && $heroDb['activate']) { diff --git a/webapp/controller/OutAppMintController.class.php b/webapp/controller/OutAppMintController.class.php index bf0e0216..503a5535 100644 --- a/webapp/controller/OutAppMintController.class.php +++ b/webapp/controller/OutAppMintController.class.php @@ -39,6 +39,10 @@ class OutAppMintController extends BaseController { myself()->_rspErr(1, 'hero not found'); return; } + if (!$heroDb['seal_type']) { + myself()->_rspErr(1, 'hero is no seal'); + return; + } if ($heroDb['quality'] <= 1) { myself()->_rspErr(1, 'hero is N quality'); return;