作者 lyh

变更数据

@@ -360,7 +360,7 @@ class TranslateController extends BaseController @@ -360,7 +360,7 @@ class TranslateController extends BaseController
360 $catelists = $cateModel->list(['status'=>1],'id',['id','pid']); 360 $catelists = $cateModel->list(['status'=>1],'id',['id','pid']);
361 Cache::put('product_category_trans',$catelists,3600 * 24); 361 Cache::put('product_category_trans',$catelists,3600 * 24);
362 } 362 }
363 - $ids = $this->getCategoryWithChildrenCountIterative($catelists,$v['source_id']); 363 + $ids = $this->getCategoryWithChildrenIds($catelists,$v['source_id']);
364 $cateRelateModel = new CategoryRelated(); 364 $cateRelateModel = new CategoryRelated();
365 $product_ids = $cateRelateModel->whereIn('id',$ids)->distinct(true)->value('product_id'); 365 $product_ids = $cateRelateModel->whereIn('id',$ids)->distinct(true)->value('product_id');
366 $count = count($product_ids); 366 $count = count($product_ids);