Predeposit.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  9. * 网站地址: https://www.valimart.net/
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 验证器
  14. */
  15. class Predeposit extends Validate
  16. {
  17. protected $rule = [
  18. 'member_id'=>'require|number',
  19. 'amount'=>'require',
  20. 'operatetype'=>'require',
  21. 'pdc_amount'=>'require|min:0.01',
  22. 'password'=>'require'
  23. ];
  24. protected $message = [
  25. 'member_id.require'=>'用户名必须存在',
  26. 'member_id.number'=>'用户名错误',
  27. 'amount.require'=>'金额为必填',
  28. 'operatetype.require'=>'增减类型为必填',
  29. 'pdc_amount.require'=>'提现金额为大于或者等于0.01的数字',
  30. 'pdc_amount.min'=>'提现金额为大于或者等于0.01的数字',
  31. 'password.require'=>'请输入支付密码'
  32. ];
  33. protected $scene = [
  34. 'pd_add' => ['member_id', 'amount', 'operatetype'],
  35. 'pd_cash_add' => ['pdc_amount', 'password'],
  36. ];
  37. }