AdminWxappValidate.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 小夏 < 449134904@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace plugins\wxapp\validate;
  12. use think\Validate;
  13. class AdminWxappValidate extends Validate
  14. {
  15. protected $rule = [
  16. // 用|分开
  17. 'name' => 'require',
  18. 'app_id' => 'require',
  19. 'app_secret' => 'require'
  20. ];
  21. protected $message = [
  22. 'name.require' => "小程序名称不能为空!",
  23. 'app_id.require' => "小程序App Id不能为空!",
  24. 'app_secret.require' => '小程序App Secret不能为空!'
  25. ];
  26. }