Memberbank.php 819 B

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