From d82285e905a33b7c630af9b60e5ffea53503e900 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 24 Aug 2023 15:06:12 +0800 Subject: [PATCH] 1 --- webapp/controller/StakingController.class.php | 3 ++- webapp/models/Staking.php | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 webapp/models/Staking.php diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index cac6951c..c99e6556 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -4,7 +4,7 @@ require_once("models/Stacking.php"); use phpcommon\SqlHelper; -use models\FirstTopup; +use models\Statcking; class StackingController extends BaseAuthedController { @@ -45,6 +45,7 @@ class StackingController extends BaseAuthedController { 'maturity_quant' => 0, ), ); + $rows = Stacking::all(myself()->_getAddress()); myself()->_rspData($info); } diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php new file mode 100644 index 00000000..bc6fabe6 --- /dev/null +++ b/webapp/models/Staking.php @@ -0,0 +1,22 @@ +_getMysql(''), + 't_staking', + array( + 'address' => $address + ) + ); + return $rows; + } + +}