合并分支 'lyh-server' 到 'master'
gx 查看合并请求 !1544
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -127,7 +127,7 @@ class RouteMap extends Base | @@ -127,7 +127,7 @@ class RouteMap extends Base | ||
| 127 | public static function setRoute($title, $source, $source_id, $project_id = 0){ | 127 | public static function setRoute($title, $source, $source_id, $project_id = 0){ |
| 128 | $route = self::generateRoute($title, $source, $source_id, $project_id); | 128 | $route = self::generateRoute($title, $source, $source_id, $project_id); |
| 129 | if(!$route){ | 129 | if(!$route){ |
| 130 | - throw new \Exception('路由生成失败'); | 130 | + return time().$project_id; |
| 131 | } | 131 | } |
| 132 | try { | 132 | try { |
| 133 | $route_map = self::where(['project_id' => $project_id, 'source' => $source, 'source_id'=>$source_id])->first(); | 133 | $route_map = self::where(['project_id' => $project_id, 'source' => $source, 'source_id'=>$source_id])->first(); |
-
请 注册 或 登录 后发表评论