This commit is contained in:
aozhiwei 2023-07-15 18:12:11 +08:00
parent 306e505505
commit 2e49208872

View File

@ -128,6 +128,10 @@ class BlockChainController extends BaseAuthedController {
myself()->_rspErr(1, 'already activated');
return;
}
if ($heroDb['state'] == 1) {
myself()->_rspErr(1, 'cant mint');
return;
}
$tokenId = $heroDb['active_token_id'];
if (!$tokenId) {
$tokenId = BuyRecord::genOrderId
@ -150,6 +154,10 @@ class BlockChainController extends BaseAuthedController {
break;
case 2:
{
if (true) {
myself()->_rspErr(1, 'cant mint');
return;
}
$gunDb = Gun::find($uniid);
if (!$gunDb) {
myself()->_rspErr(1, 'gun not found');
@ -181,6 +189,10 @@ class BlockChainController extends BaseAuthedController {
break;
case 3:
{
if (true) {
myself()->_rspErr(1, 'cant mint');
return;
}
$chipDb = Chip::find($uniid);
if (!$chipDb) {
myself()->_rspErr(1, 'chip not found');