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