From 4c13a0eae33c82e80d6401c5c44d5ca293a4b7b1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Nov 2022 13:01:16 +0800 Subject: [PATCH] 1 --- webapp/controller/BlockChainController.class.php | 3 ++- webapp/models/Transaction.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index 49ba32ac..c244a729 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -440,11 +440,12 @@ class BlockChainController extends BaseAuthedController { 'account_id' => myself()->_getAccountId(), 'session_id' => myself()->_getSessionId(), 'account' => myself()->_getOpenId(), + 'type' => $type, 'token_id' => $tokenId, 'chip_ids' => implode('|', $chipIds) ), array( - 'action' => Transaction::EVOLVE_CHIP_ACTION_TYPE, + 'action' => Transaction::UNPLUG_CHIP_ACTION_TYPE, 'tokenId' => $tokenId, 'tokenType' => 0, 'itemUniId' => $heroDb['chip_uniid'], diff --git a/webapp/models/Transaction.php b/webapp/models/Transaction.php index 7a2fc2c4..1e3c9f02 100644 --- a/webapp/models/Transaction.php +++ b/webapp/models/Transaction.php @@ -13,6 +13,7 @@ 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 CREATED_STATUS = 1; const REPORTED_STATUS = 2;