作者 lyh

gx

@@ -175,9 +175,9 @@ class VideoTask extends Command @@ -175,9 +175,9 @@ class VideoTask extends Command
175 */ 175 */
176 public function getKeywordImage($keyword_id,$project_id){ 176 public function getKeywordImage($keyword_id,$project_id){
177 $keywordModel = new Keyword(); 177 $keywordModel = new Keyword();
178 - $thumb = $keywordInfo = $keywordModel->read(['id'=>$keyword_id]); 178 + $keywordInfo = $keywordModel->read(['id'=>$keyword_id]);
179 //TODO::所有产品 179 //TODO::所有产品
180 - $this->getRecommendAndHotProducts($keywordInfo['route'],$project_id); 180 + $thumb = $this->getRecommendAndHotProducts($keywordInfo['route'],$project_id);
181 $domainModel = new DomainInfo(); 181 $domainModel = new DomainInfo();
182 $domainInfo = $domainModel->read(['project_id'=>$project_id]); 182 $domainInfo = $domainModel->read(['project_id'=>$project_id]);
183 if(!empty($domainInfo)){ 183 if(!empty($domainInfo)){
@@ -322,6 +322,7 @@ class Demo extends Command @@ -322,6 +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 $data = []; 326 $data = [];
326 if (!empty($products)){ 327 if (!empty($products)){
327 foreach ($products as $item){ 328 foreach ($products as $item){