更新
This commit is contained in:
@@ -20,10 +20,12 @@ class OrderValidate extends BaseValidate
|
||||
'order_type' => 'require|in:1,2,3,4,5,6,7',
|
||||
'amount' => 'require|float',
|
||||
'status' => 'require|in:1,2,3,4',
|
||||
'payment_method' => 'in:alipay,wechat,wechat_work',
|
||||
'payment_method' => 'in:alipay,wechat,wechat_work,fubei,manual',
|
||||
'remark' => 'string|max:500',
|
||||
'order_no' => 'string|max:50',
|
||||
'is_supplement' => 'in:0,1',
|
||||
'order_ids' => 'require|array',
|
||||
'assistant_id' => 'require|integer|gt:0',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
@@ -44,5 +46,6 @@ class OrderValidate extends BaseValidate
|
||||
'cancel' => ['id'],
|
||||
'refund' => ['id'],
|
||||
'delete' => ['id'],
|
||||
'assign_assistant' => ['order_ids', 'assistant_id'],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user