setter
							parent
							
								
									12c7d2ef34
								
							
						
					
					
						commit
						f2d17ebea5
					
				|  | @ -703,6 +703,3 @@ if (!function_exists('list_to_tree')){ | ||||||
|         return $tree; |         return $tree; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  |  | ||||||
|  | @ -28,7 +28,8 @@ class Spu extends Base | ||||||
|     public function category(): Json |     public function category(): Json | ||||||
|     { |     { | ||||||
|         if(input("hasChildren/d",0)){ |         if(input("hasChildren/d",0)){ | ||||||
|             $list = SpuRepository::getInstance()->categoryAll(["id,pid,title,cover"]); |             $list = SpuRepository::getInstance()->categoryAll(["id,sort,pid,title,cover"]); | ||||||
|  | 
 | ||||||
|         }else{ |         }else{ | ||||||
|             $list = SpuRepository::getInstance()->category(0,["id,pid,title,cover"])->toArray(); |             $list = SpuRepository::getInstance()->category(0,["id,pid,title,cover"])->toArray(); | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue