作者 lyh

gx

@@ -79,7 +79,7 @@ class CategoryLogic extends BaseLogic @@ -79,7 +79,7 @@ class CategoryLogic extends BaseLogic
79 * @time :2023/10/18 15:10 79 * @time :2023/10/18 15:10
80 */ 80 */
81 public function getAllSub($id,&$str = []){ 81 public function getAllSub($id,&$str = []){
82 - $list = $this->model->list(['pid'=>$id,'status'=>0],['id','pid']); 82 + $list = $this->model->list(['pid'=>$id,'status'=>1],['id','pid']);
83 if(!empty($list)){ 83 if(!empty($list)){
84 foreach ($list as $v){ 84 foreach ($list as $v){
85 $str[] = $v['id']; 85 $str[] = $v['id'];