正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -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)){ |
-
请 注册 或 登录 后发表评论