Kirin 3 years ago
parent
commit
4eaad6958a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/models/store/StoreProduct.php

+ 1 - 0
app/models/store/StoreProduct.php

@@ -94,6 +94,7 @@ class StoreProduct extends BaseModel
         $limit = $data['limit'];
         $type = $data['type']; // 某些模板需要购物车数量 1 = 需要查询,0 = 不需要
         $model = self::validWhere();
+        $model->where('max_use_integral', 0)->where('is_suit', 0);
         if ($data['is_consumer'] > 0) $model = $model->where('is_consumer', $data['is_consumer']);
         if ($sId) {
             $model->whereIn('id', function ($query) use ($sId) {