This commit is contained in:
aozhiwei 2024-08-27 14:37:57 +08:00
parent 5f9f2748ce
commit aa489c11e7
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,11 @@ class BlockChainController extends BaseAuthedController {
myself()->_rspErr(1, 'hero no seal'); myself()->_rspErr(1, 'hero no seal');
return; return;
} }
if ($heroDb['quality'] <= 1) {
myself()->_rspErr(1, 'hero is N quality');
return;
}
$isMint = true; $isMint = true;
$tokenId = $heroDb['token_id']; $tokenId = $heroDb['token_id'];
if ($heroDb['token_id'] && $heroDb['activate']) { if ($heroDb['token_id'] && $heroDb['activate']) {

View File

@ -39,6 +39,10 @@ class OutAppMintController extends BaseController {
myself()->_rspErr(1, 'hero not found'); myself()->_rspErr(1, 'hero not found');
return; return;
} }
if (!$heroDb['seal_type']) {
myself()->_rspErr(1, 'hero is no seal');
return;
}
if ($heroDb['quality'] <= 1) { if ($heroDb['quality'] <= 1) {
myself()->_rspErr(1, 'hero is N quality'); myself()->_rspErr(1, 'hero is N quality');
return; return;