ryan 3 недель назад
Родитель
Сommit
30c4c7dee5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      common/services/GuestDeclarationOrderService.php

+ 1 - 1
common/services/GuestDeclarationOrderService.php

@@ -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]]);