Kirin %!s(int64=3) %!d(string=hai) anos
pai
achega
4eaad6958a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {