|
|
@@ -178,7 +178,7 @@ class StoreCart extends BaseModel
|
|
|
|
|
|
public static function getUserProductCartList($uid, $cartIds = '', $status = 0, $store_id = 0)
|
|
|
{
|
|
|
- $productInfoField = 'id,image,price,ot_price,vip_price,postage,give_integral,sales,stock,store_name,unit_name,is_show,is_del,is_postage,cost,is_sub,temp_id,is_consumer,is_suit,max_use_integral,store_id,store_bag';
|
|
|
+ $productInfoField = 'id,image,price,ot_price,vip_price,postage,give_integral,sales,stock,store_name,unit_name,is_show,is_del,is_postage,cost,is_sub,temp_id,is_consumer,is_suit,is_bind,max_use_integral,store_id,store_bag';
|
|
|
$seckillInfoField = 'id,image,price,ot_price,postage,give_integral,sales,stock,title as store_name,unit_name,is_show,is_del,is_postage,cost,temp_id,weight,volume,start_time,stop_time,time_id';
|
|
|
$bargainInfoField = 'id,image,min_price as price,price as ot_price,postage,give_integral,sales,stock,title as store_name,unit_name,status as is_show,is_del,is_postage,cost,temp_id,weight,volume';
|
|
|
$combinationInfoField = 'id,image,price,postage,sales,stock,title as store_name,is_show,is_del,is_postage,cost,temp_id,weight,volume';
|
|
|
@@ -294,6 +294,7 @@ class StoreCart extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ $is_bind = 0;
|
|
|
foreach ($valid as $k => $cart) {
|
|
|
if ($cart['trueStock'] < $cart['cart_num']) {
|
|
|
$cart['cart_num'] = $cart['trueStock'];
|
|
|
@@ -306,6 +307,7 @@ class StoreCart extends BaseModel
|
|
|
unset($valid[$k]['productInfo']['is_del'], $valid[$k]['productInfo']['is_del'], $valid[$k]['productInfo']['is_show']);
|
|
|
}
|
|
|
$suit += ($cart['productInfo']['is_suit'] ?? 0) * $cart['cart_num'];
|
|
|
+ $is_bind = $cart['productInfo']['is_bind'] ?? 0;
|
|
|
$store_bag = $store_bag || ($cart['productInfo']['store_bag'] ?? 0);
|
|
|
}
|
|
|
foreach ($invalid as $k => $cart) {
|
|
|
@@ -315,7 +317,7 @@ class StoreCart extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return compact('valid', 'invalid', 'suit', 'store_bag');
|
|
|
+ return compact('valid', 'invalid', 'suit', 'store_bag', 'is_bind');
|
|
|
}
|
|
|
|
|
|
/**
|