|
...
|
...
|
@@ -322,7 +322,7 @@ class Demo extends Command |
|
|
|
$products = Product::where("project_id", $project_id)->where("status",1)->inRandomOrder()->take(13)->get();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '产品数据:'.$products;
|
|
|
|
echo '产品数据:'.json_encode($products);
|
|
|
|
$data = [];
|
|
|
|
if (!empty($products)){
|
|
|
|
foreach ($products as $item){
|
...
|
...
|
|