作者 lyh

gx

@@ -70,7 +70,6 @@ class Category extends Base @@ -70,7 +70,6 @@ class Category extends Base
70 $str[] = $cate_id; 70 $str[] = $cate_id;
71 $cate_ids = $this->getAllSub($cate_id,$str); 71 $cate_ids = $this->getAllSub($cate_id,$str);
72 $productArr = CategoryRelated::whereIn('cate_id',$cate_ids)->pluck('product_id')->unique()->toArray(); 72 $productArr = CategoryRelated::whereIn('cate_id',$cate_ids)->pluck('product_id')->unique()->toArray();
73 -  
74 $count = count($productArr); 73 $count = count($productArr);
75 return $count; 74 return $count;
76 } 75 }
@@ -111,8 +111,8 @@ class RouteMap extends Base @@ -111,8 +111,8 @@ class RouteMap extends Base
111 * @author zbj 111 * @author zbj
112 * @date 2023/4/17 112 * @date 2023/4/17
113 */ 113 */
114 - public static function setRoute($title, $source, $source_id, $project_id = 0,$six_read = 1){  
115 - if($six_read != 1){//5.0数据编辑路由时,直接返回路由 114 + public static function setRoute($title, $source, $source_id, $project_id = 0,$is_upgrade = 0){
  115 + if($is_upgrade != 0){//5.0数据编辑路由时,直接返回路由
116 return $title; 116 return $title;
117 } 117 }
118 $route = self::generateRoute($title, $source, $source_id, $project_id); 118 $route = self::generateRoute($title, $source, $source_id, $project_id);