正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论