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