截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HelpValidate.php 666B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\admin\validate\content;
  3. use app\common\basics\Validate;
  4. class HelpValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'id' => 'require|number',
  8. 'cid' => 'require|number',
  9. 'title' => 'require',
  10. ];
  11. protected $message = [
  12. 'id.require' => 'id不可为空',
  13. 'id.number' => 'id必须为数字',
  14. 'cid.require' => '请选择分类',
  15. 'cid.number' => '分类选择异常',
  16. 'title.require' => '请填写帮助标题'
  17. ];
  18. protected $scene = [
  19. 'id' => ['id'],
  20. 'add' => ['cid', 'title'],
  21. 'edit' => ['id', 'cid', 'title'],
  22. ];
  23. }