|
|
@@ -858,9 +858,11 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
|
}
|
|
|
$cart = explode(",", $order['cart_id']);
|
|
|
+ foreach ($order['orderProduct'] as &$item){
|
|
|
+ $item['verify_num'] = StoreCart::where('cart_id',$item->cart_id)->value('verify_num');
|
|
|
+ $item['not_verify_num'] = bcsub($item->product_num,$item->verify_num,0);
|
|
|
+ }
|
|
|
|
|
|
- $order['verify_num'] = StoreCart::where('cart_id','in',$cart)->sum('verify_num');
|
|
|
- $order['not_verify_num'] = bcsub($order['total_num'],$order['verify_num'],0);
|
|
|
// 返回订单详情
|
|
|
return $order;
|
|
|
}
|