1
This commit is contained in:
parent
ded703562d
commit
cac797a640
@ -617,14 +617,6 @@ class BlockChainController extends BaseAuthedController {
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($type) {
|
||||
case 1:
|
||||
{
|
||||
$heroDb = Hero::findByTokenId($tokenId);
|
||||
if (!$heroDb) {
|
||||
myself()->_rspErr(101, 'token_id paramater error');
|
||||
return;
|
||||
}
|
||||
//CEG扣除
|
||||
{
|
||||
$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(
|
||||
array(
|
||||
'c' => 'BcService',
|
||||
@ -721,7 +723,8 @@ class BlockChainController extends BaseAuthedController {
|
||||
'tokenType' => Nft::EQUIP_TYPE,
|
||||
'itemUniId' => $gunDb['gun_uniid'],
|
||||
'itemId' => $gunDb['gun_id']
|
||||
)
|
||||
),
|
||||
$decFeeCb
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user