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