Sdkcp.php 692 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright (C) 2018 Baidu, Inc. All Rights Reserved.
  4. */
  5. /**
  6. * Created by PhpStorm.
  7. * User: Administrator
  8. * Date: 2018/1/22
  9. * Time: 16:07
  10. */
  11. namespace app\admin\validate;
  12. use app\common\library\ValidateExtend;
  13. class Sdkcp extends ValidateExtend
  14. {
  15. protected $rule = [
  16. 'appid|游戏名称 ' => 'require|isEmpty|unique:cy_cpurl',
  17. // 'cp_appid|appid' => 'require|isEmpty',
  18. 'url|回调地址 ' => 'require|isEmpty',
  19. ];
  20. protected $message = [
  21. 'appid.isEmpty' => '游戏名称不能为空',
  22. // 'cp_appid.isEmpty' => 'cp_appid不能为空',zs
  23. 'url.isEmpty' => '回调地址不能为空',
  24. ];
  25. }