作者 lyh

gx

@@ -306,6 +306,7 @@ class Demo extends Command @@ -306,6 +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);
309 if (!empty($productKeyword)){ 310 if (!empty($productKeyword)){
310 $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();
311 if (!empty($productsQuery)){ 312 if (!empty($productsQuery)){