diff --git a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php index b9f27d13b..95719e1ca 100644 --- a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php +++ b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php @@ -117,7 +117,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic PurchaseProductOffer::where('order_id',$bhoid)->where('product_id',$find['product_id'])->update(['need_num'=>$params['nums']]); } $order=BeforehandOrder::where('id', $bhoid)->find(); - $order->update(['total_price' => $info['total_price'], 'total_num' => $info['cart_num']]); + $order->save(['total_price' => $info['total_price'], 'total_num' => $info['cart_num']]); if($order['outbound_id']>0){ $wp= WarehouseProduct::where('oid',$order['outbound_id'])->where('product_id',$find['product_id'])->where('financial_pm',0)->find(); @@ -131,6 +131,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic return true; } catch (\Throwable $e) { Db::rollback(); + d($e); throw new BusinessException($e->getMessage()); } }