Group.php 827 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 应用配置
  7. */
  8. namespace app\smartbc\validate;
  9. use think\Validate;
  10. class Group extends Validate{
  11. protected $rule = [
  12. 'member_miniapp_id' => 'require',
  13. 'title' => 'require',
  14. 'content' => 'require',
  15. 'uid' => 'require',
  16. ];
  17. protected $message = [
  18. 'member_miniapp_id' => '应用ID丢失',
  19. 'title' => '商圏名称必须填写',
  20. 'content' => '商圏简介必须填写',
  21. 'uid' => '圈主必须选择',
  22. ];
  23. protected $scene = [
  24. 'edit' => ['title', 'content']
  25. ];
  26. }