|
...
|
...
|
@@ -13,6 +13,7 @@ use App\Models\Com\KeywordVideoTask; |
|
|
|
use App\Models\Com\KeywordVideoTaskLog;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\KeywordRelated;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Console\Command;
|
|
...
|
...
|
@@ -301,6 +302,7 @@ class VideoTask extends Command |
|
|
|
$productModel = new Product();
|
|
|
|
$keyword_ids = !empty($keyword_ids) ? ','.$keyword_ids.',' : ',' ;
|
|
|
|
$keyword_id_str = $keyword_ids . $keyword_id.',';
|
|
|
|
KeywordRelated::saveRelated($item->id,explode(',',trim($keyword_id_str,',')));
|
|
|
|
$productModel->edit(['keyword_id'=>$keyword_id_str],['id'=>$item->id]);
|
|
|
|
}
|
|
|
|
$data[] = ['url'=>getImageUrl($item->thumb['url']),'title'=>$item->title];
|
...
|
...
|
|