正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -331,7 +331,7 @@ class ProjectUpdate extends Command | @@ -331,7 +331,7 @@ class ProjectUpdate extends Command | ||
| 331 | $category_id = ''; | 331 | $category_id = ''; |
| 332 | if ($api_type == 'news' && ($item['category'] ?? [])) { | 332 | if ($api_type == 'news' && ($item['category'] ?? [])) { |
| 333 | $category_arr = $category_model->list(['original_id' => ['in', array_column($item['category'], 'id')]]); | 333 | $category_arr = $category_model->list(['original_id' => ['in', array_column($item['category'], 'id')]]); |
| 334 | - $category_id = $logic->getLastCategory(array_column($category_arr, 'id')); | 334 | + $category_id = $logic->getCategory(array_column($category_arr, 'id')); |
| 335 | } | 335 | } |
| 336 | try { | 336 | try { |
| 337 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); | 337 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); |
-
请 注册 或 登录 后发表评论