|
|
@@ -19,6 +19,8 @@ class ServiceOrderValidate extends BaseValidate
|
|
|
'appointment_time' => 'require|dateFormat:Y-m-d H:i:s',
|
|
|
'pay_way' => 'require',
|
|
|
'goods_id' => 'require',
|
|
|
+ 'contact_number' => 'require',
|
|
|
+ 'contact_people' => 'require'
|
|
|
];
|
|
|
|
|
|
|
|
|
@@ -29,12 +31,14 @@ class ServiceOrderValidate extends BaseValidate
|
|
|
'appointment_time.dateFormat' => '预约上门时间格式错误',
|
|
|
'pay_way.require' => '请选择支付方式',
|
|
|
'goods_id.require' => '订单商品不存在',
|
|
|
+ 'contact_number.require' => '联系电话不存在',
|
|
|
+ 'contact_people.require' => '联系人不存在',
|
|
|
];
|
|
|
|
|
|
|
|
|
public function sceneAdd()
|
|
|
{
|
|
|
- return $this->only(['address','appointment_time','pay_way','goods_id']);
|
|
|
+ return $this->only(['address','appointment_time','pay_way','goods_id','contact_number','contact_people']);
|
|
|
}
|
|
|
|
|
|
public function sceneDetail()
|