This commit is contained in:
hujiabin 2022-11-11 14:54:16 +08:00
parent ded703562d
commit cac797a640

View File

@ -617,14 +617,6 @@ class BlockChainController extends BaseAuthedController {
return; return;
} }
switch ($type) {
case 1:
{
$heroDb = Hero::findByTokenId($tokenId);
if (!$heroDb) {
myself()->_rspErr(101, 'token_id paramater error');
return;
}
//CEG扣除 //CEG扣除
{ {
$costSum = 0; $costSum = 0;
@ -671,6 +663,16 @@ class BlockChainController extends BaseAuthedController {
}; };
} }
} }
switch ($type) {
case 1:
{
$heroDb = Hero::findByTokenId($tokenId);
if (!$heroDb) {
myself()->_rspErr(101, 'token_id paramater error');
return;
}
$this->internalBcCall( $this->internalBcCall(
array( array(
'c' => 'BcService', 'c' => 'BcService',
@ -721,7 +723,8 @@ class BlockChainController extends BaseAuthedController {
'tokenType' => Nft::EQUIP_TYPE, 'tokenType' => Nft::EQUIP_TYPE,
'itemUniId' => $gunDb['gun_uniid'], 'itemUniId' => $gunDb['gun_uniid'],
'itemId' => $gunDb['gun_id'] 'itemId' => $gunDb['gun_id']
) ),
$decFeeCb
); );
} }
break; break;