@@ -432,8 +432,10 @@ class StoreCartServices extends BaseServices
*/
public function setCartNum($uid, $productId, $num, $unique, $type)
{
- //检查限购
- $this->checkLimit($uid, $productId, $num, 0);
+ if ($type == 1) {
+ //检查限购
+ $this->checkLimit($uid, $productId, $num, 0);
+ }
/** @var StoreProductAttrValueServices $attrValueServices */
$attrValueServices = app()->make(StoreProductAttrValueServices::class);