作者 刘锟

update

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