作者 刘锟

update

@@ -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] ?? '';
@@ -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);