123456789101112131415161718192021222324252627282930 |
- <?php
- namespace General\Requests;
- class CompanyAuthRequest extends Request
- {
- use BaseAuthConfig;
- /**
- * Get the validation rules that apply to the request.
- *
- * @return array
- */
- public function rules()
- {
- return [
- 'app_id' => 'required|string|exists:company_auth_configs',
- 'nonce_str' => 'required|string',
- 'timestamp' => 'required|string',
- 'sign' => 'required|string',
- ];
- }
- public function messages()
- {
- return [
- 'app_id.exists' => '未授权!',
- ];
- }
- }
|