|
@@ -585,6 +585,9 @@ class ProjectUpdate extends Command |
|
@@ -585,6 +585,9 @@ class ProjectUpdate extends Command |
|
585
|
$category_id = $category_custom['id'];
|
585
|
$category_id = $category_custom['id'];
|
|
586
|
}
|
586
|
}
|
|
587
|
}
|
587
|
}
|
|
|
|
588
|
+ if($category_id){
|
|
|
|
589
|
+ $category_id = ',' . $category_id . ',';
|
|
|
|
590
|
+ }
|
|
588
|
//图片
|
591
|
//图片
|
|
589
|
if (is_array($item['images'] ?? '')) {
|
592
|
if (is_array($item['images'] ?? '')) {
|
|
590
|
$image = $item['images'][0] ?? '';
|
593
|
$image = $item['images'][0] ?? '';
|
|
@@ -625,8 +628,8 @@ class ProjectUpdate extends Command |
|
@@ -625,8 +628,8 @@ class ProjectUpdate extends Command |
|
625
|
}
|
628
|
}
|
|
626
|
|
629
|
|
|
627
|
//扩展字段
|
630
|
//扩展字段
|
|
628
|
- if ($item['extend'][0] ?? []) {
|
|
|
|
629
|
- foreach ($item['extend'][0] as $ke => $ve) {
|
631
|
+ if ($item['extend'] ?? []) {
|
|
|
|
632
|
+ foreach ($item['extend'] as $ke => $ve) {
|
|
630
|
$extend = $extend_model->read(['title' => $ke]);
|
633
|
$extend = $extend_model->read(['title' => $ke]);
|
|
631
|
if ($extend) {
|
634
|
if ($extend) {
|
|
632
|
$extend_info = $extend_info_model->read(['key' => $extend['key'], 'content_id' => $id]);
|
635
|
$extend_info = $extend_info_model->read(['key' => $extend['key'], 'content_id' => $id]);
|
|
@@ -637,7 +640,7 @@ class ProjectUpdate extends Command |
|
@@ -637,7 +640,7 @@ class ProjectUpdate extends Command |
|
637
|
foreach ($ve as $ve_img) {
|
640
|
foreach ($ve as $ve_img) {
|
|
638
|
$gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve_img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
|
641
|
$gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve_img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
|
|
639
|
}
|
642
|
}
|
|
640
|
- }else{
|
643
|
+ } else {
|
|
641
|
$gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
|
644
|
$gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
|
|
642
|
}
|
645
|
}
|
|
643
|
$value = Arr::a2s($gallery);
|
646
|
$value = Arr::a2s($gallery);
|