正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -322,7 +322,7 @@ class Demo extends Command | @@ -322,7 +322,7 @@ class Demo extends Command | ||
| 322 | $products = Product::where("project_id", $project_id)->where("status",1)->inRandomOrder()->take(13)->get(); | 322 | $products = Product::where("project_id", $project_id)->where("status",1)->inRandomOrder()->take(13)->get(); |
| 323 | } | 323 | } |
| 324 | } | 324 | } |
| 325 | - echo '产品数据:'.$products; | 325 | + echo '产品数据:'.json_encode($products); |
| 326 | $data = []; | 326 | $data = []; |
| 327 | if (!empty($products)){ | 327 | if (!empty($products)){ |
| 328 | foreach ($products as $item){ | 328 | foreach ($products as $item){ |
-
请 注册 或 登录 后发表评论