mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改优化方案
This commit is contained in:
parent
8799a404e7
commit
c6b8a43142
@ -21,6 +21,17 @@ class UserTransfer extends Controller
|
|||||||
*/
|
*/
|
||||||
private $table = 'DataUserTransfer';
|
private $table = 'DataUserTransfer';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现转账方案
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $types = [];
|
||||||
|
|
||||||
|
protected function initialize()
|
||||||
|
{
|
||||||
|
$this->types = UserTransferService::instance()->types();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提现规则配置
|
* 提现规则配置
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
@ -31,7 +42,6 @@ class UserTransfer extends Controller
|
|||||||
{
|
{
|
||||||
$this->skey = 'TransferRule';
|
$this->skey = 'TransferRule';
|
||||||
$this->title = '提现规则配置';
|
$this->title = '提现规则配置';
|
||||||
$this->types = UserTransferService::instance()->types();
|
|
||||||
$this->_sysdata();
|
$this->_sysdata();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<select name="type">
|
<select name="type">
|
||||||
<option value="">-- 全部 --</option>
|
<option value="">-- 全部 --</option>
|
||||||
{foreach ['1'=>'提现到余额', '2'=>'提现到银行'] as $k=>$v}
|
{foreach $types as $k=>$v}
|
||||||
{if input('type') eq $k.''}
|
{if input('type') eq $k.''}
|
||||||
<option selected value="{$k}">{$v}</option>
|
<option selected value="{$k}">{$v}</option>
|
||||||
{else}
|
{else}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user