Pricerange.php 502 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\admin\validate\goods;
  3. use think\Validate;
  4. class Pricerange extends Validate
  5. {
  6. /**
  7. * 验证规则
  8. */
  9. protected $rule = [
  10. 'range' => 'require|max:100'
  11. ];
  12. /**
  13. * 提示消息
  14. */
  15. protected $message = [
  16. ];
  17. /**
  18. * 验证字段描述
  19. */
  20. protected $field = [
  21. 'range' => '价格区间'
  22. ];
  23. /**
  24. * 验证场景
  25. */
  26. protected $scene = [
  27. 'add' => [],
  28. 'edit' => [],
  29. ];
  30. }