正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论