|
|
@@ -3228,12 +3228,11 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// }
|
|
|
foreach ($order['orderProduct'] as $k => $v){
|
|
|
$num=0;
|
|
|
- var_dump($v->cart_id);
|
|
|
- $cart_info = StoreCart::where(['cart_id' => $v['cart_id'], 'product_id' => $v['product_id']])->find();
|
|
|
+ $cart_info = StoreCart::where(['cart_id' => $v->cart_id, 'product_id' => $v->product_id])->find();
|
|
|
foreach ($data as &$vv){
|
|
|
- if ($vv['product_id'] == $v['product_id']){
|
|
|
+ if ($vv['product_id'] == $v->product_id){
|
|
|
$num = $vv['num'];
|
|
|
- $vv['cart_id'] = $v['cart_id'];
|
|
|
+ $vv['cart_id'] = $v->cart_id;
|
|
|
$vv['verify_num'] = $cart_info['verify_num'];
|
|
|
}
|
|
|
}
|
|
|
@@ -3271,7 +3270,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// $this->takeAfter($order, $order->user);
|
|
|
// 保存更新后的订单信息
|
|
|
$res= $order->save();
|
|
|
- var_dump($res);
|
|
|
// 构建订单状态变更信息
|
|
|
$orderStatus = [
|
|
|
'order_id' => $order->order_id,
|