|
...
|
...
|
@@ -332,6 +332,12 @@ class ProjectUpdate extends Command |
|
|
|
$gallery[] = ['alt' => '', 'url' => $this->source_download($img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//缩略图
|
|
|
|
$thumb = $gallery[0] ?? [];
|
|
|
|
if(isset($thumb['url']) && $thumb['url']){
|
|
|
|
//生成缩略图
|
|
|
|
$thumb['url'] = thumbImageByUrl($thumb['url']);
|
|
|
|
}
|
|
|
|
//关键词
|
|
|
|
$keyword_id = '';
|
|
|
|
if ($item['tags'] ?? []) {
|
|
...
|
...
|
@@ -371,7 +377,7 @@ class ProjectUpdate extends Command |
|
|
|
'content' => $content,
|
|
|
|
'category_id' => $category_id,
|
|
|
|
'keyword_id' => $keyword_id,
|
|
|
|
'thumb' => isset($gallery[0]) ? Arr::a2s($gallery[0]) : '',
|
|
|
|
'thumb' => Arr::a2s($thumb),
|
|
|
|
'gallery' => Arr::a2s($gallery),
|
|
|
|
'attrs' => Arr::a2s($attrs),
|
|
|
|
'seo_mate' => Arr::a2s([
|
|
...
|
...
|
@@ -417,7 +423,7 @@ class ProjectUpdate extends Command |
|
|
|
'content' => $content,
|
|
|
|
'category_id' => $category_id,
|
|
|
|
'keyword_id' => $keyword_id,
|
|
|
|
'thumb' => isset($gallery[0]) ? Arr::a2s($gallery[0]) : '',
|
|
|
|
'thumb' => Arr::a2s($thumb),
|
|
|
|
'gallery' => Arr::a2s($gallery),
|
|
|
|
'attrs' => Arr::a2s($attrs),
|
|
|
|
'seo_mate' => Arr::a2s([
|
...
|
...
|
|