作者 lyh

gx

... ... @@ -127,7 +127,7 @@ class RouteMap extends Base
public static function setRoute($title, $source, $source_id, $project_id = 0){
$route = self::generateRoute($title, $source, $source_id, $project_id);
if(!$route){
throw new \Exception('路由生成失败');
return time().$project_id;
}
try {
$route_map = self::where(['project_id' => $project_id, 'source' => $source, 'source_id'=>$source_id])->first();
... ...