正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -104,7 +104,7 @@ class RouteMap extends Base | @@ -104,7 +104,7 @@ class RouteMap extends Base | ||
| 104 | if(!$route){ | 104 | if(!$route){ |
| 105 | throw new \Exception('路由不能为空'); | 105 | throw new \Exception('路由不能为空'); |
| 106 | } | 106 | } |
| 107 | - try { | 107 | +// try { |
| 108 | $route_map = self::where('project_id', $project_id)->where('source_id', $source_id)->where('source', $source)->first(); | 108 | $route_map = self::where('project_id', $project_id)->where('source_id', $source_id)->where('source', $source)->first(); |
| 109 | if(!$route_map){ | 109 | if(!$route_map){ |
| 110 | $route_map = new self(); | 110 | $route_map = new self(); |
| @@ -114,9 +114,9 @@ class RouteMap extends Base | @@ -114,9 +114,9 @@ class RouteMap extends Base | ||
| 114 | } | 114 | } |
| 115 | $route_map->route = $route; | 115 | $route_map->route = $route; |
| 116 | $route_map->save(); | 116 | $route_map->save(); |
| 117 | - }catch (\Exception $e){ | ||
| 118 | - throw new \Exception('路由映射失败'); | ||
| 119 | - } | 117 | +// }catch (\Exception $e){ |
| 118 | +// throw new \Exception('路由映射失败'); | ||
| 119 | +// } | ||
| 120 | return $route; | 120 | return $route; |
| 121 | } | 121 | } |
| 122 | 122 |
-
请 注册 或 登录 后发表评论