1
This commit is contained in:
@@ -89,6 +89,9 @@ class UsedCarService
|
|||||||
if(empty($data['images'])){
|
if(empty($data['images'])){
|
||||||
throw new BusinessException('产品图片不能为空');
|
throw new BusinessException('产品图片不能为空');
|
||||||
}
|
}
|
||||||
|
if(empty($data['price'])){
|
||||||
|
$data['price'] = 0;
|
||||||
|
}
|
||||||
$data['user_id'] = $request->user['id'];
|
$data['user_id'] = $request->user['id'];
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user