Kirin 3 년 전
부모
커밋
4eaad6958a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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) {