作者 lyh
@@ -196,7 +196,7 @@ class PrivateController extends BaseController @@ -196,7 +196,7 @@ class PrivateController extends BaseController
196 return $this->error('未找到当前域名对应的项目!'); 196 return $this->error('未找到当前域名对应的项目!');
197 } 197 }
198 ProjectServer::useProject($project->id); 198 ProjectServer::useProject($project->id);
199 - $feature_category = Category::whereIn('title', ['Featured','featured'])->pluck('id'); 199 + $feature_category = Category::whereIn('title', ['Featured','featured', 'Featured Products'])->pluck('id');
200 $feature_product = CategoryRelated::whereIn('cate_id',$feature_category)->pluck('product_id')->unique()->toArray(); 200 $feature_product = CategoryRelated::whereIn('cate_id',$feature_category)->pluck('product_id')->unique()->toArray();
201 $product_route = Product::where(['status' => Product::STATUS_ON])->whereNotIn('id', $feature_product)->pluck('route')->toArray(); 201 $product_route = Product::where(['status' => Product::STATUS_ON])->whereNotIn('id', $feature_product)->pluck('route')->toArray();
202 return $this->success($product_route); 202 return $this->success($product_route);