|
|
@@ -1723,14 +1723,13 @@ HTML;
|
|
|
'integralRatio' => sys_config('integral_ratio')
|
|
|
];
|
|
|
$cartIdA = explode(',', $cartId);
|
|
|
- foreach ($cartIdA as $cartIdItem) {
|
|
|
- var_dump($cartGroup);die();
|
|
|
- $product_id = $cartGroup['cartInfo'][$cartIdItem]['product_id'] ?? 0;
|
|
|
+ foreach ($cartGroup['cartInfo'] as $v) {
|
|
|
+// $product_id = $cartGroup['cartInfo'][$cartIdItem]['product_id'] ?? 0;
|
|
|
// 检测是否是礼包商品
|
|
|
- $storeServices = app()->make(StoreProductServices::class);
|
|
|
- $is_lb = $storeServices->value(['id' => $product_id], 'is_lb');
|
|
|
- if ($is_lb == 1) {
|
|
|
- return app('json')->fail('礼包商品不支持加入购物车');
|
|
|
+// $storeServices = app()->make(StoreProductServices::class);
|
|
|
+// $is_lb = $storeServices->value(['id' => $product_id], 'is_lb');
|
|
|
+ if ($v['productInfo']['is_lb'] == 1) {
|
|
|
+ return app('json')->fail('礼包商品不支持购物车购买');
|
|
|
}
|
|
|
}
|
|
|
$seckill_id = 0;
|