12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
-
- *
-
- *
- * ----------------------------------------------------------------------------
- *
-
- * 验证器
- */
- class Predeposit extends Validate
- {
- protected $rule = [
- 'member_id' => 'require|number',
- 'amount' => 'require',
- 'operatetype' => 'require',
- 'pdc_amount' => 'require|min:0.01',
- 'password' => 'require'
- ];
- protected $message = [
- 'member_id.require' => '用户名必须存在',
- 'member_id.number' => '用户名错误',
- 'amount.require' => '金额为必填',
- 'operatetype.require' => '增减类型为必填',
- 'pdc_amount.require' => '提现金额为大于或者等于0.01的数字',
- 'pdc_amount.min' => '提现金额为大于或者等于0.01的数字',
- 'password.require' => '请输入支付密码'
- ];
- protected $scene = [
- 'pd_add' => ['member_id', 'amount', 'operatetype'],
- 'pd_cash_add' => ['pdc_amount', 'password'],
- ];
- }
|