作者 lyh

gx

@@ -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){