2019-11-29 01:58:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
class OrderUpdate extends FormRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'status' => 'in:0,1,2,3',
|
2020-11-17 17:01:02 +08:00
|
|
|
'commission_status' => 'in:0,1,3'
|
2019-11-29 01:58:20 +08:00
|
|
|
];
|
|
|
|
}
|
2020-01-11 13:36:52 +08:00
|
|
|
|
2019-11-29 01:58:20 +08:00
|
|
|
public function messages()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'status.in' => '销售状态格式不正确',
|
2020-02-23 02:05:23 +08:00
|
|
|
'commission_status.in' => '佣金状态格式不正确'
|
2019-11-29 01:58:20 +08:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|