Memberbank.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. *
  9. * ----------------------------------------------------------------------------
  10. *
  11. * ============================================================================
  12. * 验证器
  13. */
  14. class Memberbank extends Validate
  15. {
  16. protected $rule = [
  17. 'memberbank_type' => 'require',
  18. 'memberbank_truename' => 'require',
  19. 'memberbank_no' => 'require',
  20. ];
  21. protected $message = [
  22. 'memberbank_type.require' => '账户类型不能为空',
  23. 'memberbank_truename.require' => '开户名不能为空',
  24. 'memberbank_no.require' => '账号不能为空',
  25. ];
  26. protected $scene = [
  27. 'add' => ['memberbank_type', 'memberbank_truename', 'memberbank_no'],
  28. 'edit' => ['memberbank_type', 'memberbank_truename', 'memberbank_no'],
  29. ];
  30. }