作者 lyh

gx

... ... @@ -175,9 +175,9 @@ class VideoTask extends Command
*/
public function getKeywordImage($keyword_id,$project_id){
$keywordModel = new Keyword();
$thumb = $keywordInfo = $keywordModel->read(['id'=>$keyword_id]);
$keywordInfo = $keywordModel->read(['id'=>$keyword_id]);
//TODO::所有产品
$this->getRecommendAndHotProducts($keywordInfo['route'],$project_id);
$thumb = $this->getRecommendAndHotProducts($keywordInfo['route'],$project_id);
$domainModel = new DomainInfo();
$domainInfo = $domainModel->read(['project_id'=>$project_id]);
if(!empty($domainInfo)){
... ...
... ... @@ -322,6 +322,7 @@ class Demo extends Command
$products = Product::where("project_id", $project_id)->where("status",1)->inRandomOrder()->take(13)->get();
}
}
echo '产品数据:'.$products;
$data = [];
if (!empty($products)){
foreach ($products as $item){
... ...