This commit is contained in:
aozhiwei 2022-11-08 12:54:51 +08:00
parent ce4b94d1c2
commit 53b8204e58
2 changed files with 14 additions and 3 deletions

View File

@ -443,7 +443,7 @@ class BlockChainController extends BaseAuthedController {
'slot_ids' => implode('|', $slotIds),
),
array(
'action' => Transaction::UNPLUG_CHIP_ACTION_TYPE,
'action' => Transaction::PLUGIN_CHIP_ACTION_TYPE,
'tokenId' => $tokenId,
'tokenType' => Nft::HERO_TYPE,
'itemUniId' => $heroDb['chip_uniid'],
@ -481,7 +481,7 @@ class BlockChainController extends BaseAuthedController {
'slot_ids' => implode('|', $slotIds),
),
array(
'action' => Transaction::UNPLUG_CHIP_ACTION_TYPE,
'action' => Transaction::PLUGIN_CHIP_ACTION_TYPE,
'tokenId' => $tokenId,
'tokenType' => Nft::EQUIP_TYPE,
'itemUniId' => $gunDb['chip_uniid'],

View File

@ -13,7 +13,8 @@ class Transaction extends BaseModel {
const EVOLVE_CHIP_ACTION_TYPE = 4;
const MINT_SHARD_BATCH_ACTION_TYPE = 5;
const SHARD_MIX_BY_USER_ACTION_TYPE = 6;
const UNPLUG_CHIP_ACTION_TYPE = 7;
const PLUGIN_CHIP_ACTION_TYPE = 7;
const UNPLUG_CHIP_ACTION_TYPE = 8;
const CREATED_STATUS = 1;
const REPORTED_STATUS = 2;
@ -93,6 +94,16 @@ class Transaction extends BaseModel {
return 'Synthesis';
}
break;
case self::PLUGIN_CHIP_ACTION_TYPE:
{
return 'Equipment';
}
break;
case self::UNPLUG_CHIP_ACTION_TYPE:
{
return 'Remove';
}
break;
default:
{
return 'None';