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.
 
 

69 lines
1.7 KiB

<?php
declare(strict_types=1);
namespace App\Request;
class OrderOnlineRequest extends BaseFormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'delivery_no' => '',
'dada_fee' => 'nonempty',
'market_id' => 'required|nonempty|integer',
'user_id' => 'required|nonempty|integer',
'money' => 'required|nonempty',
'box_money' => '',
'ps_money' => '',
'mj_money' => '',
'xyh_money' => '',
'yhq_money' => '',
'yhq_money2' => '',
'zk_money' => '',
'tel' => 'required|nonempty',
'name' => 'required|nonempty',
'address' => 'required|nonempty',
'area' => '',
'lat' => 'required|nonempty',
'lng' => 'required|nonempty',
'note' => '',
'type' => 'required|nonempty',
'form_id' => '',
'form_id2' => '',
'delivery_time' => '',
'order_type' => 'nonempty',
'pay_type' => 'nonempty',
'coupon_id' => '',
'coupon_id2' => '',
'uniacid' => 'nonempty',
'store_list' => 'nonempty',
'receive_coupon_ids' => '',
];
}
public function messages(): array
{
return [
'*.*' => ':attribute 参数异常'
];
}
public function attributes(): array
{
return [
];
}
}