From 1cb0754de752fab5aaf505f280a2f4b30f4a851e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 28 Aug 2023 15:28:43 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 3 +++ webapp/controller/StakingController.class.php | 2 +- webapp/models/Staking.php | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index b56bf7dc..9253700a 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -181,6 +181,9 @@ class BaseAuthedController extends BaseController { $this->addressActived = true; if (SERVER_ENV != _ONLINE && empty($this->address)) { $this->address = strtolower('0xa9ecB9F3A0b54d31ce4a035C89EC7Da4110beB59'); + if (myself()->_getAccountId() == '6513_2006_3WOWIsmpcihK1KTnNP1Ky5MBOh7rt6Rl') { + $this->address = strtolower('0x0bb52209756e8d157f2e551a9adb8d9019b688b1'); + } } } return $this->address; diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index 086cef19..c5a444f8 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -79,7 +79,7 @@ class StakingController extends BaseAuthedController { foreach ($rows as $row) { if ($row['status'] == Staking::STAKING_STATUS) { if ($this->isTypeNft($type, $row)) { - array_push($items, Staking::toDto($info)); + array_push($items, Staking::toDto($row)); ++$stackedQuant; } } diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php index 3ce9b57f..5928a360 100644 --- a/webapp/models/Staking.php +++ b/webapp/models/Staking.php @@ -6,6 +6,8 @@ require_once("mt/Staking.php"); use phpcommon\SqlHelper; +use mt; + class Staking extends BaseModel { const STAKING_STATUS = 0;