1
This commit is contained in:
parent
306e505505
commit
2e49208872
@ -128,6 +128,10 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
myself()->_rspErr(1, 'already activated');
|
myself()->_rspErr(1, 'already activated');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($heroDb['state'] == 1) {
|
||||||
|
myself()->_rspErr(1, 'cant mint');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$tokenId = $heroDb['active_token_id'];
|
$tokenId = $heroDb['active_token_id'];
|
||||||
if (!$tokenId) {
|
if (!$tokenId) {
|
||||||
$tokenId = BuyRecord::genOrderId
|
$tokenId = BuyRecord::genOrderId
|
||||||
@ -150,6 +154,10 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
|
if (true) {
|
||||||
|
myself()->_rspErr(1, 'cant mint');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$gunDb = Gun::find($uniid);
|
$gunDb = Gun::find($uniid);
|
||||||
if (!$gunDb) {
|
if (!$gunDb) {
|
||||||
myself()->_rspErr(1, 'gun not found');
|
myself()->_rspErr(1, 'gun not found');
|
||||||
@ -181,6 +189,10 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
|
if (true) {
|
||||||
|
myself()->_rspErr(1, 'cant mint');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$chipDb = Chip::find($uniid);
|
$chipDb = Chip::find($uniid);
|
||||||
if (!$chipDb) {
|
if (!$chipDb) {
|
||||||
myself()->_rspErr(1, 'chip not found');
|
myself()->_rspErr(1, 'chip not found');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user