作者 lyh

gx

@@ -307,6 +307,7 @@ class Demo extends Command @@ -307,6 +307,7 @@ class Demo extends Command
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); 309 echo '产品数据:'.json_encode($productKeyword);
  310 + return 0;
310 if (!empty($productKeyword)){ 311 if (!empty($productKeyword)){
311 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get(); 312 $productsQuery = Product::where("project_id", $project_id)->where("status",1)->where("keyword_id","like","%,".$productKeyword->id.",%")->limit(7)->get();
312 if (!empty($productsQuery)){ 313 if (!empty($productsQuery)){