From eb2c6aeb5cf56effa85735001cbe72945385aedb Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 26 Aug 2023 11:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E7=94=B3=E8=AF=B7=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/order/StoreRefundOrderRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/order/StoreRefundOrderRepository.php b/app/common/repositories/store/order/StoreRefundOrderRepository.php index bd16e28e..927b6261 100644 --- a/app/common/repositories/store/order/StoreRefundOrderRepository.php +++ b/app/common/repositories/store/order/StoreRefundOrderRepository.php @@ -407,7 +407,7 @@ class StoreRefundOrderRepository extends BaseRepository $orderId = $order->order_id; //TODO 订单状态生成佣金 $product = app()->make(StoreOrderProductRepository::class)->userRefundProducts([$productId], $uid, $orderId); - if (!$product) + if ($product->isEmpty()) throw new ValidateException('请选择正确的退款商品'); $product = $product[0]; if ($product['refund_num'] < $num)