diff --git a/app/api/logic/DemoLogic.php b/app/api/logic/DemoLogic.php index 24349cf1..5deb97f3 100644 --- a/app/api/logic/DemoLogic.php +++ b/app/api/logic/DemoLogic.php @@ -121,7 +121,7 @@ class DemoLogic extends BaseLogic $cartInfo = BeforehandOrderCartInfo::where('bhoid', $params['id'])->select()->toArray(); $productIds = array_column($cartInfo, 'product_id'); - $products = StoreProduct::whereIn('id', $productIds)->select()->toArray(); + $products = StoreProduct::whereIn('id', $productIds)->withTrashed()->select()->toArray(); $products = reset_index($products, 'id'); $update = []; foreach ($cartInfo as $v) {