From a6bab7fee422bd5cd96197d8b1969941a5e43958 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 3 Nov 2022 15:21:21 +0800 Subject: [PATCH] 1 --- webapp/controller/BlockChainController.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index 2af044d5..b2813781 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -27,6 +27,18 @@ use models\BuyRecord; class BlockChainController extends BaseAuthedController { + public function _handlePre() + { + parent::_handlePre(); + if (getReqVal('a') != 'getTransactionList') { + die(json_encode(array( + 'errcode' => 501, + 'errmsg' => 'you are not a wallet user' + ))); + return; + } + } + public function getTransactionList() { $trans = array();