You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.6 KiB
44 lines
1.6 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\validate\member;
|
|
|
|
use think\Validate;
|
|
|
|
/**
|
|
* 提现设置验证类
|
|
*/
|
|
class CashOutConfig extends Validate
|
|
{
|
|
|
|
|
|
protected $rule = [
|
|
'is_open' => 'in:0,1', //是否开启
|
|
'min' => 'min:0', //最低提现金额
|
|
'rate' => 'between:0,100', //提现手续费比率
|
|
'is_auto_verify' => 'in:0,1', //是否自动审核
|
|
'is_auto_transfer' => 'in:0,1', //是否自动转账
|
|
'transfer_type' => 'require',
|
|
];
|
|
|
|
protected $message = [
|
|
'is_open.in' => 'validate_member.cash_out_is_open_in',
|
|
'min.min' => 'validate_member.cash_out_min_min',
|
|
'rate.between' => 'validate_member.cash_out_rate_between',
|
|
'is_auto_verify.in' => 'validate_member.cash_out_is_auto_verify_in',
|
|
'is_auto_transfer.in' => 'validate_member.cash_out_is_auto_transfer_in',
|
|
'transfer_type.require' => 'validate_member_cash_out_config.transfer_type_require',
|
|
];
|
|
|
|
protected $scene = [
|
|
'set' => ['is_open', 'min', 'rate', 'is_auto_verify', 'is_auto_transfer', 'transfer_type'],
|
|
];
|
|
}
|
|
|