Memberflea.php 653 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. *
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 验证器
  10. */
  11. class Memberflea extends Validate
  12. {
  13. protected $rule = [
  14. 'goods_name' => 'require',
  15. 'goods_price' => 'require'
  16. ];
  17. protected $message = [
  18. 'goods_name.require' => '宝贝标题不能为空',
  19. 'goods_price.require' => '宝贝原价不能为空'
  20. ];
  21. protected $scene = [
  22. 'edit_save_goods' => ['goods_name', 'goods_price'],
  23. 'save_goods' => ['goods_name', 'goods_price'],
  24. ];
  25. }