|
|
@@ -303,7 +303,7 @@ class GuestDeclarationOrderService
|
|
|
$ids = $input['goodsId'] ?? [];
|
|
|
$quantities = $input['goodsNum'] ?? [];
|
|
|
if (!is_array($ids) || !is_array($quantities) || count($ids) !== count($quantities) || !$ids) {
|
|
|
- throw new BadRequestHttpException('Select at least one valid product.1');
|
|
|
+ throw new BadRequestHttpException('Select at least one valid product.1'.json_encode([$ids,$quantities]));
|
|
|
}
|
|
|
foreach ($ids as $index => $id) {
|
|
|
$quantity = filter_var($quantities[$index], FILTER_VALIDATE_INT, ['options' => ['min_range' => 0, 'max_range' => 99]]);
|