You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
758 B

<?php
declare(strict_types=1);
namespace App\Request;
use App\Request\BaseFormRequest;
class WxminiPayRequest extends BaseFormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'order_id' => 'required|nonempty|integer',
'openid' => 'required|nonempty',
'money' => 'required|nonempty',
];
}
public function messages(): array
{
return [
'*.*' => ':attribute 参数异常',
];
}
public function attributes(): array
{
return [
'order_id' => '订单',
'money' => '订单金额',
'openid' => '用户标识',
];
}
}