作者 lyh

gx

@@ -305,9 +305,7 @@ class Demo extends Command @@ -305,9 +305,7 @@ class Demo extends Command
305 public function getRecommendAndHotProducts($route,$project_id): ?array 305 public function getRecommendAndHotProducts($route,$project_id): ?array
306 { 306 {
307 $productIds = []; 307 $productIds = [];
308 - dd($route);  
309 $productKeyword = Keyword::where("project_id",$project_id)->where("route",$route)->first(); 308 $productKeyword = Keyword::where("project_id",$project_id)->where("route",$route)->first();
310 - dd($productKeyword);  
311 if (!empty($productKeyword)){ 309 if (!empty($productKeyword)){
312 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get(); 310 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get();
313 if (!empty($productsQuery)){ 311 if (!empty($productsQuery)){