|
...
|
...
|
@@ -179,7 +179,7 @@ class VideoTask extends Command |
|
|
|
$productModel = new Product();
|
|
|
|
$productList = $productModel->list(['keyword_id'=>['like','%,'.$keywordInfo['id'].',%']],['thumb','title']);
|
|
|
|
if(count($productList) < 5){
|
|
|
|
$productList = $productModel->list([],'sort',['thumb','title']);
|
|
|
|
$productList = $productModel->inRandomOrder()->take(100)->get()->toArray();
|
|
|
|
//获取7个产品主图
|
|
|
|
}
|
|
|
|
$product_image = [];
|
...
|
...
|
|