|
...
|
...
|
@@ -561,12 +561,14 @@ class ProjectUpdate extends Command |
|
|
|
'pid' => $pid,
|
|
|
|
'original_id' => $item['id']
|
|
|
|
]);
|
|
|
|
$this->set_map($this->get_url_route($item['url'] ?? ''), RouteMap::SOURCE_NEWS_CATE, $parent_id, $project_id);
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
echo 'date:' . date('Y-m-d H:i:s') . ', category_news_insert error: ' . $e->getMessage() . PHP_EOL;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$parent_id = $parent['id'];
|
|
|
|
$this->set_map($this->get_url_route($item['url'] ?? ''), RouteMap::SOURCE_NEWS_CATE, $parent_id, $project_id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($item['children'])) {
|
...
|
...
|
|