123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- namespace app\outapi\validate;
- use think\Validate;
- class LoginValidate extends Validate
- {
- protected $regex = ['account' => '/^[a-zA-Z0-9]{4,30}$/'];
- /**
- * @var string[]
- */
- protected $rule = [
- 'appid' => 'require|account',
- 'appsecret' => 'require',
- ];
- /**
- * @var string[]
- */
- protected $message = [
- 'appid.require' => 400133,
- 'appid.account' => 400140,
- 'appsecret.regex' => 400134,
- ];
- }
|