Sellercomplain.php 966 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. *
  9. * ----------------------------------------------------------------------------
  10. *
  11. * ============================================================================
  12. * 验证器
  13. */
  14. class Sellercomplain extends Validate
  15. {
  16. protected $rule = [
  17. 'appeal_message' => 'require|length:1,255',
  18. ];
  19. protected $message = [
  20. 'appeal_message.require' => '投诉内容不能为空且必须小于100个字符|投诉内容不能为空且必须小于100个字符',
  21. 'appeal_message.length' => '投诉内容不能为空且必须小于100个字符|投诉内容不能为空且必须小于100个字符',
  22. ];
  23. protected $scene = [
  24. 'appeal_save' => ['appeal_message'],
  25. ];
  26. }