作者 赵彬吉

update

@@ -63,7 +63,7 @@ class NavLogic extends BaseLogic @@ -63,7 +63,7 @@ class NavLogic extends BaseLogic
63 } 63 }
64 } 64 }
65 } 65 }
66 - 66 + $data['url'] = $data['url'] ?: '';
67 // 保存 67 // 保存
68 $id = parent::save($data); 68 $id = parent::save($data);
69 69
@@ -71,7 +71,7 @@ class RouteMap extends Model @@ -71,7 +71,7 @@ class RouteMap extends Model
71 * @date 2023/4/17 71 * @date 2023/4/17
72 */ 72 */
73 protected static function isExist($route, $source, $source_id, $project_id){ 73 protected static function isExist($route, $source, $source_id, $project_id){
74 - $fixed = []; //固定的路由 74 + $fixed = ['news','products','search','blog']; //固定的路由
75 if(in_array($route, $fixed)){ 75 if(in_array($route, $fixed)){
76 return true; 76 return true;
77 } 77 }