作者 lyh

gx

... ... @@ -104,7 +104,7 @@ class RouteMap extends Base
if(!$route){
throw new \Exception('路由不能为空');
}
try {
// try {
$route_map = self::where('project_id', $project_id)->where('source_id', $source_id)->where('source', $source)->first();
if(!$route_map){
$route_map = new self();
... ... @@ -114,9 +114,9 @@ class RouteMap extends Base
}
$route_map->route = $route;
$route_map->save();
}catch (\Exception $e){
throw new \Exception('路由映射失败');
}
// }catch (\Exception $e){
// throw new \Exception('路由映射失败');
// }
return $route;
}
... ...