Memberbank.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 Memberbank extends Validate
  16. {
  17. protected $rule = [
  18. 'memberbank_type'=>'require',
  19. 'memberbank_truename'=>'require',
  20. 'memberbank_no'=>'require',
  21. ];
  22. protected $message = [
  23. 'memberbank_type.require'=>'账户类型不能为空',
  24. 'memberbank_truename.require'=>'开户名不能为空',
  25. 'memberbank_no.require'=>'账号不能为空',
  26. ];
  27. protected $scene = [
  28. 'add' => ['memberbank_type', 'memberbank_truename', 'memberbank_no'],
  29. 'edit' => ['memberbank_type', 'memberbank_truename', 'memberbank_no'],
  30. ];
  31. }