cqp 3 月之前
父节点
当前提交
534228b0e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Service/ProductService.php

+ 1 - 1
app/Service/ProductService.php

@@ -1178,7 +1178,7 @@ class ProductService extends Service
     public function productGroupByListData($data, $user, $search){
         if(empty($data['data'])) return $data;
 
-        $type = $search['type'] ?? 0;
+        $type = $search['type'] ?? 1;
         $category = ProductCategory::whereIn('id',array_unique(array_column($data['data'],'product_category_id')))
             ->select('title','id')
             ->get()