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