whitefang 1 rok temu
rodzic
commit
4c5fddefff
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/workerapi/lists/GoodsCategoryLists.php

+ 1 - 1
app/workerapi/lists/GoodsCategoryLists.php

@@ -34,7 +34,7 @@ class GoodsCategoryLists extends BaseWorkerDataLists implements ListsSearchInter
             $ids = explode(',', MasterWorker::where('id', $this->userId)->value('category_ids'));
             if(!empty($ids)){
                 $category_types = GoodsCategory::where('id', 'in', $ids)->group('category_type')->column('category_type');
-                $where['category_type'] = ['in', implode(',', $category_types)];
+                $where[] = ['category_type','in', implode(',', $category_types)];
             }
         }
         return $where;