1
0
whitefang 1 жил өмнө
parent
commit
86ccdca3a2

+ 2 - 0
app/workerapi/lists/GoodsCategoryLists.php

@@ -4,6 +4,7 @@ namespace app\workerapi\lists;
 use app\common\lists\ListsSearchInterface;
 use app\common\model\goods_category\GoodsCategory;
 use app\common\model\master_worker\MasterWorker;
+use think\facade\Log;
 
 /**
  * GoodsCategory列表
@@ -33,6 +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');
+                Log::write('用户'.$this->userId.'可查看的分类类型:'.implode(',', $category_types));
                 $where['category_type'] = ['in', $category_types];
             }
         }