Appkey.php 782 B

12345678910111213141516171819202122232425262728293031323334
  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 Appkey extends ValidateExtend
  14. {
  15. protected $rule = [
  16. 'gameid|游戏名称 ' => 'require|isEmpty|unique:cy_app',
  17. 'appid|Appid标识符' => 'require|isEmpty',
  18. // 'cp_appid|appid' => 'require|isEmpty',
  19. // 'callback_url|回调地址 ' => 'require|isEmpty',
  20. ];
  21. protected $message = [
  22. 'gameid.isEmpty' => '游戏名称不能为空',
  23. // 'cp_appid.isEmpty' => 'cp_appid不能为空',
  24. // 'callback_url.isEmpty' => '回调地址不能为空',
  25. ];
  26. }