From c6b8a43142dbd11f9fd0af5c27ff897efa79af7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 17 Mar 2021 15:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/UserTransfer.php | 12 +++++++++++- app/data/view/user_transfer/index_search.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/data/controller/UserTransfer.php b/app/data/controller/UserTransfer.php index 0bb24faa5..9428aaf2a 100644 --- a/app/data/controller/UserTransfer.php +++ b/app/data/controller/UserTransfer.php @@ -21,6 +21,17 @@ class UserTransfer extends Controller */ private $table = 'DataUserTransfer'; + /** + * 提现转账方案 + * @var array + */ + protected $types = []; + + protected function initialize() + { + $this->types = UserTransferService::instance()->types(); + } + /** * 提现规则配置 * @throws \think\db\exception\DataNotFoundException @@ -31,7 +42,6 @@ class UserTransfer extends Controller { $this->skey = 'TransferRule'; $this->title = '提现规则配置'; - $this->types = UserTransferService::instance()->types(); $this->_sysdata(); } diff --git a/app/data/view/user_transfer/index_search.html b/app/data/view/user_transfer/index_search.html index 473df6d8f..d7f20418e 100644 --- a/app/data/view/user_transfer/index_search.html +++ b/app/data/view/user_transfer/index_search.html @@ -21,7 +21,7 @@