wesmiler hai 6 días
pai
achega
63d511c3eb
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Services/Common/GoodsService.php

+ 5 - 0
app/Services/Common/GoodsService.php

@@ -126,6 +126,11 @@ class GoodsService extends BaseService
             $where['zone_type'] = $params['zone_type'];
         }
 
+        // 商品类型
+        if (isset($params['type']) && $params['type'] > 0) {
+            $where['type'] = $params['type'];
+        }
+
         // 分类筛选
         $categoryId = isset($params['category_id']) ? intval($params['category_id']) : 0;
         if ($categoryId > 0) {