wesmiler 2 هفته پیش
والد
کامیت
74b65b15a4
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      app/Services/Common/GoodsService.php

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

@@ -129,6 +129,11 @@ class GoodsService extends BaseService
             $where['status'] = $status;
         }
 
+        $type = isset($params['type']) && $params['type']? intval($params['type']) : 1;
+        if ($type > 0) {
+            $where['type'] = $type;
+        }
+
         // 企业支持:如果当前登录用户关联了企业信息,则只查询该企业的商品
         if (isset($params['store_id']) && $params['store_id'] > 0) {
             $where['store_id'] = $params['store_id'];