From cf8b3a45cfa5cc6eafd79161863a7eccc4a47aef Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 28 Aug 2023 15:13:21 +0800 Subject: [PATCH] 1 --- webapp/controller/StakingController.class.php | 5 +++++ webapp/models/Staking.php | 1 + 2 files changed, 6 insertions(+) diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index 85ff435f..086cef19 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -107,6 +107,11 @@ class StakingController extends BaseAuthedController { )); } + public function redeemPreview() + { + $transId = getReqVal('trans_id', 0); + } + private function isTypeNft($type, $dbInfo) { switch ($type) { diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php index 225e250b..fe154ffc 100644 --- a/webapp/models/Staking.php +++ b/webapp/models/Staking.php @@ -183,6 +183,7 @@ class Staking extends BaseModel { { $stakingMeta = mt\Staking::get($row['item_id']); $dto = array( + 'trans_id' => $row['idx'], 'token_id' => $row['token_id'], 'token_type' => $row['token_type'], 'contract_address' => $row['contract_address'],