作者 刘锟

update

... ... @@ -149,6 +149,11 @@ class ProjectUpdate extends Command
foreach ($items as $item) {
$route = $this->get_url_route($item['url'] ?? '');
if ($route) {
//判断路由是否存在
$route_info = RouteMap::where('project_id', $project_id)->where('route', $route)->where('path', '')->first();
if ($route_info) {
continue;
}
$keyword = $model->read(['route' => $route], 'id');
if (!$keyword) {
try {
... ...