作者 lyh

gx

@@ -306,8 +306,7 @@ class Demo extends Command @@ -306,8 +306,7 @@ class Demo extends Command
306 { 306 {
307 $productIds = []; 307 $productIds = [];
308 $productKeyword = Keyword::where("project_id",$project_id)->where("route",$route)->first(); 308 $productKeyword = Keyword::where("project_id",$project_id)->where("route",$route)->first();
309 - echo '产品数据:'.json_encode($productKeyword);  
310 - return 0; 309 + dd($productKeyword);
311 if (!empty($productKeyword)){ 310 if (!empty($productKeyword)){
312 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get(); 311 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get();
313 if (!empty($productsQuery)){ 312 if (!empty($productsQuery)){