diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index 433c12f1..946bfd57 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -172,7 +172,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $product_cart = []; foreach ($merchantCart['list'] as $k => $cart) { - if ($order_type == 98 || $order_type == 99) { + if ($order_type == 98) { $merchantCart['list'][$k]['product']['delivery_way'] = $cart['product']['delivery_way'] = $deliverMethod ?? ''; } //获取订单类型, 活动商品单次只能购买一个 diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 4361c724..0fcd0c67 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -253,10 +253,10 @@ class StoreOrderRepository extends BaseRepository //更新委托订单处理 if ($order->activity_type == 99) { $cartIdArray = explode(',', $order->cart_id); - $cartList = Db::name('store_cart')->whereIn('cart_id', $cartIdArray)->select(); - foreach($cartList as $cart) { - if (!empty($cart['source_id'])) { - Db::name('community')->whereIn('community_id', $cart['source_id'])->update(['entrust_order_id' => $order->order_id ?? 0]); + $ecartList = Db::name('store_cart')->whereIn('cart_id', $cartIdArray)->select(); + foreach($ecartList as $ecart) { + if (!empty($ecart['source_id'])) { + Db::name('community')->where('community_id', $ecart['source_id'])->update(['entrust_order_id' => $order->order_id ?? 0]); } } }