修改优化方案

This commit is contained in:
邹景立 2021-03-17 15:42:04 +08:00
parent 8799a404e7
commit c6b8a43142
2 changed files with 12 additions and 2 deletions

View File

@ -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();
}

View File

@ -21,7 +21,7 @@
<div class="layui-input-inline">
<select name="type">
<option value="">-- 全部 --</option>
{foreach ['1'=>'提现到余额', '2'=>'提现到银行'] as $k=>$v}
{foreach $types as $k=>$v}
{if input('type') eq $k.''}
<option selected value="{$k}">{$v}</option>
{else}